pub struct GpioConfig {
pub direction: Direction,
pub output_mode: OutputMode,
pub pull_resistor: PullResistor,
pub event_trigger: EventTrigger,
}Expand description
Configuration for a GPIO pin
Fields§
§direction: Direction§output_mode: OutputMode§pull_resistor: PullResistor§event_trigger: EventTriggerTrait Implementations§
Source§impl Clone for GpioConfig
impl Clone for GpioConfig
Source§fn clone(&self) -> GpioConfig
fn clone(&self) -> GpioConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GpioConfig
impl Debug for GpioConfig
Source§impl Default for GpioConfig
impl Default for GpioConfig
impl Copy for GpioConfig
Auto Trait Implementations§
impl Freeze for GpioConfig
impl RefUnwindSafe for GpioConfig
impl Send for GpioConfig
impl Sync for GpioConfig
impl Unpin for GpioConfig
impl UnwindSafe for GpioConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more