[][src]Enum sen0177::Sen0177Error

pub enum Sen0177Error {
    DeviceNotFound,
    DeviceUnavailable,
    InvalidData(String),
    ChecksumMismatch,
    IoError(Error),
}

Describes errors returned by the SEN0177 sensor

Variants

DeviceNotFound

Device not found on the specified port

DeviceUnavailable

Device is in use or does not support required port configuration parameters

InvalidData(String)

Device returned invalid data

ChecksumMismatch

The checksum provided in the sensor data did not match the checksum of the data itself

Retrying the read will usually clear up the problem.

IoError(Error)

An IO error occurred when communicating with the serial port

Trait Implementations

impl Debug for Sen0177Error[src]

impl Display for Sen0177Error[src]

impl Error for Sen0177Error[src]

impl From<Error> for Sen0177Error[src]

impl From<Error> for Sen0177Error[src]

Auto Trait Implementations

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> ToString for T where
    T: Display + ?Sized
[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.