[][src]Enum sps30::Error

pub enum Error<E, F> {
    SerialR(Error<F>),
    SerialW(E),
    SHDLC(HDLCError),
    InvalidFrame,
    EmptyResult,
    ChecksumFailed,
    InvalidRespose,
    StatusError,
}

Errors for this crate

Variants

SerialR(Error<F>)

Serial bus read error

SerialW(E)

Serial bus write error

SHDLC(HDLCError)

SHDLC decode error

InvalidFrame

No valid frame read.

Input function read more than 600 characters without seeing two 0x7e

EmptyResult

Result is empty

ChecksumFailed

Checksum failed, after shdlc decode

InvalidRespose

Response is for another CommandType

StatusError

Device returned an Error (State field of MISO Frame is not 0)

Trait Implementations

impl<E: Debug, F: Debug> Debug for Error<E, F>[src]

impl<E, F> From<Error<F>> for Error<E, F>[src]

Auto Trait Implementations

impl<E, F> Send for Error<E, F> where
    E: Send,
    F: Send

impl<E, F> Sync for Error<E, F> where
    E: Sync,
    F: Sync

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