[][src]Enum pzem004t::Error

pub enum Error<WriteError, ReadError> {
    TimedOut,
    CrcMismatch,
    PzemError,
    IllegalAddress,
    WriteError(WriteError),
    ReadError(ReadError),
}

Errors which can occur when attempting to communicate with PZEM004T sensor.

Variants

TimedOut
CrcMismatch
PzemError
IllegalAddress
WriteError(WriteError)
ReadError(ReadError)

Trait Implementations

impl<WriteError: Clone, ReadError: Clone> Clone for Error<WriteError, ReadError>[src]

impl<WriteError: Debug, ReadError: Debug> Debug for Error<WriteError, ReadError>[src]

impl<WriteError: Display, ReadError: Display> Display for Error<WriteError, ReadError>[src]

Auto Trait Implementations

impl<WriteError, ReadError> Send for Error<WriteError, ReadError> where
    ReadError: Send,
    WriteError: Send

impl<WriteError, ReadError> Sync for Error<WriteError, ReadError> where
    ReadError: Sync,
    WriteError: Sync

impl<WriteError, ReadError> Unpin for Error<WriteError, ReadError> where
    ReadError: Unpin,
    WriteError: 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.