Struct dummy_pin::DummyPin[][src]

pub struct DummyPin<L = Low> { /* fields omitted */ }

Dummy (no-op, zero-cost) pin

The implementation will discard any value written to it. When read, it will always behave according to the value provided at construction time (high or low).

Implementations

impl DummyPin<Low>[src]

pub fn new_low() -> Self[src]

Create new instance

When read it will always behave as being low.

impl DummyPin<High>[src]

pub fn new_high() -> Self[src]

Create new instance

When read it will always behave as being high.

Trait Implementations

impl<L: Clone> Clone for DummyPin<L>[src]

impl<L: Copy> Copy for DummyPin<L>[src]

impl<L: Debug> Debug for DummyPin<L>[src]

impl InputPin for DummyPin<Low>[src]

type Error = Infallible

Error type

impl InputPin for DummyPin<High>[src]

type Error = Infallible

Error type

impl<L> OutputPin for DummyPin<L>[src]

type Error = Infallible

Error type

impl StatefulOutputPin for DummyPin<Low>[src]

impl StatefulOutputPin for DummyPin<High>[src]

impl<L> ToggleableOutputPin for DummyPin<L>[src]

type Error = Infallible

Error type

Auto Trait Implementations

impl<L> RefUnwindSafe for DummyPin<L> where
    L: RefUnwindSafe

impl<L> Send for DummyPin<L> where
    L: Send

impl<L> Sync for DummyPin<L> where
    L: Sync

impl<L> Unpin for DummyPin<L> where
    L: Unpin

impl<L> UnwindSafe for DummyPin<L> where
    L: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> 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.