[][src]Enum mh_z19::MHZ19Error

pub enum MHZ19Error {
    WrongPacketLength(usize),
    WrongChecksum(u8, u8),
    WrongStartByte(u8),
    WrongPacketType(u8, u8),
}

Variants

WrongPacketLength(usize)

Packet of bytes has the wrong size

WrongChecksum(u8, u8)

Packet of bytes has the wrong checksum

WrongStartByte(u8)

Wrong start byte (must be 0xFF)

WrongPacketType(u8, u8)

The packet type is not the one excepting (eg must be 0x86 when reading gas concentration)

Trait Implementations

impl Debug for MHZ19Error[src]

impl Display for MHZ19Error[src]

impl PartialEq<MHZ19Error> for MHZ19Error[src]

impl StructuralPartialEq for MHZ19Error[src]

Auto Trait Implementations

impl Send for MHZ19Error

impl Sync for MHZ19Error

impl Unpin for MHZ19Error

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.