Struct embedded_hal::digital::v1_compat::OldOutputPin [−][src]
Wrapper to allow fallible v2::OutputPin
traits to be converted to v1::OutputPin
traits
Implementations
impl<T, E> OldOutputPin<T> where
T: OutputPin<Error = E>,
E: Debug,
[src]
T: OutputPin<Error = E>,
E: Debug,
Trait Implementations
impl<T, E> From<T> for OldOutputPin<T> where
T: OutputPin<Error = E>,
E: Debug,
[src]
T: OutputPin<Error = E>,
E: Debug,
impl<T, E> OutputPin for OldOutputPin<T> where
T: OutputPin<Error = E>,
E: Debug,
[src]
T: OutputPin<Error = E>,
E: Debug,
Implementation of v1::OutputPin
trait for fallible v2::OutputPin
output pins
where errors will panic.
Auto Trait Implementations
impl<T> Send for OldOutputPin<T> where
T: Send,
T: Send,
impl<T> Sync for OldOutputPin<T> where
T: Sync,
T: Sync,
impl<T> Unpin for OldOutputPin<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> OutputPin for T where
T: OutputPin,
[src]
T: OutputPin,
type Error = ()
Error type
pub fn set_low(&mut Self) -> Result<(), <T as OutputPin>::Error>
[src]
pub fn set_high(&mut Self) -> Result<(), <T as OutputPin>::Error>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,