Struct embedded_hal::digital::v1_compat::OldOutputPin
source · [−]pub struct OldOutputPin<T> { /* private fields */ }
Expand description
Wrapper to allow fallible v2::OutputPin
traits to be converted to v1::OutputPin
traits
Implementations
Trait Implementations
sourceimpl<T, E> From<T> for OldOutputPin<T>where
T: OutputPin<Error = E>,
E: Debug,
impl<T, E> From<T> for OldOutputPin<T>where
T: OutputPin<Error = E>,
E: Debug,
sourceimpl<T, E> OutputPin for OldOutputPin<T>where
T: OutputPin<Error = E>,
E: Debug,
impl<T, E> OutputPin for OldOutputPin<T>where
T: OutputPin<Error = E>,
E: Debug,
Implementation of v1::OutputPin
trait for fallible v2::OutputPin
output pins
where errors will panic.
sourceimpl<T, E> StatefulOutputPin for OldOutputPin<T>where
T: StatefulOutputPin<Error = E>,
E: Debug,
impl<T, E> StatefulOutputPin for OldOutputPin<T>where
T: StatefulOutputPin<Error = E>,
E: Debug,
Implementation of v1::StatefulOutputPin
trait for v2::StatefulOutputPin
fallible pins
where errors will panic.
sourcefn is_set_low(&self) -> bool
fn is_set_low(&self) -> bool
👎Deprecated since 0.2.2: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the pin in drive low mode? Read more
sourcefn is_set_high(&self) -> bool
fn is_set_high(&self) -> bool
👎Deprecated since 0.2.2: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the pin in drive high mode? Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for OldOutputPin<T>where
T: RefUnwindSafe,
impl<T> Send for OldOutputPin<T>where
T: Send,
impl<T> Sync for OldOutputPin<T>where
T: Sync,
impl<T> Unpin for OldOutputPin<T>where
T: Unpin,
impl<T> UnwindSafe for OldOutputPin<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more