pub enum BmeError<I2C>where
    I2C: WriteRead + Write,
    <I2C as WriteRead>::Error: Debug,
    <I2C as Write>::Error: Debug,
{ WriteError(<I2C as Write>::Error), WriteReadError(<I2C as WriteRead>::Error), UnexpectedChipId(u8), MeasuringTimeOut, }
Expand description

All possible errors

Variants§

§

WriteError(<I2C as Write>::Error)

Error during I2C write operation.

§

WriteReadError(<I2C as WriteRead>::Error)

Error during I2C WriteRead operation.

§

UnexpectedChipId(u8)

Got an unexpected ChipId during sensor initalization.

§

MeasuringTimeOut

After running the measurment the sensor blocks until the ‘new data bit’ of the sensor is set. Should this take more than 5 tries an error is returned instead of incorrect data.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.