pub struct LegacyGpioRef<'a, P: OutputPin> { /* private fields */ }
Expand description
Reference-taking version of an Instrument
implementation for an
OutputPin
(embedded-hal
version 0.2).
This type is also available as LegacyGpio
, which consumes the
underlying OutputPin
. For an Instrument
implementation which
supports embedded-hal
version 1.0, see GpioRef
.
Implementations§
Source§impl<'a, P: OutputPin> LegacyGpioRef<'a, P>
impl<'a, P: OutputPin> LegacyGpioRef<'a, P>
Sourcepub fn new(pin: &'a mut P) -> Self
pub fn new(pin: &'a mut P) -> Self
Create a new LegacyGpioRef
.
Trait Implementations§
Auto Trait Implementations§
impl<'a, P> Freeze for LegacyGpioRef<'a, P>
impl<'a, P> RefUnwindSafe for LegacyGpioRef<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for LegacyGpioRef<'a, P>where
P: Send,
impl<'a, P> Sync for LegacyGpioRef<'a, P>where
P: Sync,
impl<'a, P> Unpin for LegacyGpioRef<'a, P>
impl<'a, P> !UnwindSafe for LegacyGpioRef<'a, P>
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