[][src]Enum esp_01::Error

pub enum Error<R, T, P> {
    TxError(T),
    RxError(R),
    PinError(P),
    UnexpectedResponse(ATResponse),
    Fmt(Error),
    Capacity(CapacityError),
}

Error type for esp communication.

R and T are the error types of the serial module

Variants

TxError(T)

Serial transmission errors

RxError(R)

Serial reception errors

PinError(P)
UnexpectedResponse(ATResponse)

Invalid or unexpected data received from the device

Fmt(Error)

Errors from the formating of messages

Capacity(CapacityError)

Error indicating an ArrayString wasn't big enough

Trait Implementations

impl<R: Debug, T: Debug, P: Debug> Debug for Error<R, T, P>[src]

impl<R, T, ErrType, P> From<CapacityError<ErrType>> for Error<R, T, P>[src]

impl<R, T, P> From<Error> for Error<R, T, P>[src]

Auto Trait Implementations

impl<R, T, P> Send for Error<R, T, P> where
    P: Send,
    R: Send,
    T: Send

impl<R, T, P> Sync for Error<R, T, P> where
    P: Sync,
    R: Sync,
    T: Sync

impl<R, T, P> Unpin for Error<R, T, P> where
    P: Unpin,
    R: Unpin,
    T: 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.