pub enum DhtError<HE> {
    NotPresent,
    ChecksumMismatch(u8u8),
    InvalidData,
    Timeout,
    DelayError,
    PinError(HE),
}
Expand description

A type detailing various errors the DHT sensor can return

Variants

NotPresent

The DHT sensor was not found on the specified GPIO

ChecksumMismatch(u8u8)

The checksum provided in the DHT sensor data did not match the checksum of the data itself (expected, calculated)

InvalidData

The seemingly-valid data has impossible values (e.g. a humidity value less than 0 or greater than 100)

Timeout

The read timed out

DelayError

Received a low-level error from the HAL while sleeping

PinError(HE)

Received a low-level error from the HAL while reading or writing to pins

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

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

Converts to this type from the input type.

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.