[][src]Struct embedded_hal::digital::v1_compat::OldOutputPin

pub struct OldOutputPin<T> { /* fields omitted */ }

Wrapper to allow fallible v2::OutputPin traits to be converted to v1::OutputPin traits

Methods

impl<T, E> OldOutputPin<T> where
    T: OutputPin<Error = E>,
    E: Debug
[src]

pub fn new(pin: T) -> Self[src]

Create a new OldOutputPin wrapper around a v2::OutputPin

Trait Implementations

impl<T, E> OutputPin for OldOutputPin<T> where
    T: OutputPin<Error = E>,
    E: Debug
[src]

Implementation of v1::OutputPin trait for fallible v2::OutputPin output pins where errors will panic.

impl<T, E> StatefulOutputPin for OldOutputPin<T> where
    T: StatefulOutputPin<Error = E>,
    E: Debug
[src]

Implementation of v1::StatefulOutputPin trait for v2::StatefulOutputPin fallible pins where errors will panic.

impl<T, E> From<T> for OldOutputPin<T> where
    T: OutputPin<Error = E>,
    E: Debug
[src]

Auto Trait Implementations

impl<T> Send for OldOutputPin<T> where
    T: Send

impl<T> Sync for OldOutputPin<T> where
    T: Sync

Blanket Implementations

impl<T> OutputPin for T where
    T: OutputPin
[src]

type Error = ()

Error type

impl<T> StatefulOutputPin for T where
    T: StatefulOutputPin + OutputPin
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]