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

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

Wrapper to allow fallible v2::InputPin traits to be converted to v1::InputPin traits where errors will panic.

Methods

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

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

Create an OldInputPin wrapper around a v2::InputPin.

Trait Implementations

impl<T, E> InputPin for OldInputPin<T> where
    T: InputPin<Error = E>,
    E: Debug
[src]

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

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

Auto Trait Implementations

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

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

Blanket Implementations

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

type Error = ()

Error type

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

impl<T, U> TryInto 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, U> Into for T where
    U: From<T>, 
[src]

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

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

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