pub struct GpioPin<'c, M> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<'c, M> IoPin<GpioPin<'c, Input>, GpioPin<'c, Output<GPIO_PIN_PUSHPULL>>> for GpioPin<'c, M>
impl<'c, M> IoPin<GpioPin<'c, Input>, GpioPin<'c, Output<GPIO_PIN_PUSHPULL>>> for GpioPin<'c, M>
Source§fn into_input_pin(self) -> Result<GpioPin<'c, Input>, Self::Error>
fn into_input_pin(self) -> Result<GpioPin<'c, Input>, Self::Error>
Tries to convert this pin to input mode. Read more
Source§fn into_output_pin(
self,
state: PinState,
) -> Result<GpioPin<'c, OutputPushPull>, Self::Error>
fn into_output_pin( self, state: PinState, ) -> Result<GpioPin<'c, OutputPushPull>, Self::Error>
Tries to convert this pin to output mode with the given initial state. Read more
Auto Trait Implementations§
impl<'c, M> Freeze for GpioPin<'c, M>
impl<'c, M> RefUnwindSafe for GpioPin<'c, M>where
M: RefUnwindSafe,
impl<'c, M> Send for GpioPin<'c, M>where
M: Send,
impl<'c, M> Sync for GpioPin<'c, M>where
M: Sync,
impl<'c, M> Unpin for GpioPin<'c, M>where
M: Unpin,
impl<'c, M> UnwindSafe for GpioPin<'c, M>where
M: UnwindSafe,
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