[][src]Enum embedded_ccs811::DeviceError

pub enum DeviceError {
    InvalidRegisterWrite,
    InvalidRegisterRead,
    InvalidMeasurement,
    MaxResistence,
    HeaterFault,
    HeaterSupply,
}

Errors reported by the device

Variants

InvalidRegisterWrite

I2C write to an invalid register reported by device.

InvalidRegisterRead

I2C read from an invalid register reported by device.

InvalidMeasurement

Invalid measurement reported by device.

MaxResistence

Sensor resistance measurement reached or exceeded the maximum range reported by device.

HeaterFault

Heater current not in range reported by device.

HeaterSupply

Heater current not applied correctly reported by device.

Trait Implementations

impl Clone for DeviceError[src]

impl Copy for DeviceError[src]

impl Debug for DeviceError[src]

impl Index<DeviceError> for DeviceErrors[src]

type Output = bool

The returned type after indexing.

impl IndexMut<DeviceError> for DeviceErrors[src]

impl PartialEq<DeviceError> for DeviceError[src]

impl StructuralPartialEq for DeviceError[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.