[][src]Enum hx711::Error

pub enum Error<EIN, EOUT> {
    Input(EIN),
    Output(EOUT),
}

Error type for Input and Output errors on digital pins. For some HALs, the digital input and output pins can never fail. If you use the driver with such a crate, you can use .into_ok() on all results instead of .unwrap() or .expect().

Variants

Input(EIN)

Error while reading a digital pin

Output(EOUT)

Error while writing a digital pin

Trait Implementations

impl<EIN: Debug, EOUT: Debug> Debug for Error<EIN, EOUT>[src]

Auto Trait Implementations

impl<EIN, EOUT> Send for Error<EIN, EOUT> where
    EIN: Send,
    EOUT: Send

impl<EIN, EOUT> Sync for Error<EIN, EOUT> where
    EIN: Sync,
    EOUT: Sync

impl<EIN, EOUT> Unpin for Error<EIN, EOUT> where
    EIN: Unpin,
    EOUT: Unpin

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