Enum dht_embedded::DhtError
source · [−]pub enum DhtError<HE> {
NotPresent,
ChecksumMismatch(u8, u8),
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(u8, u8)
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
Auto Trait Implementations
impl<HE> RefUnwindSafe for DhtError<HE> where
HE: RefUnwindSafe,
impl<HE> Send for DhtError<HE> where
HE: Send,
impl<HE> Sync for DhtError<HE> where
HE: Sync,
impl<HE> Unpin for DhtError<HE> where
HE: Unpin,
impl<HE> UnwindSafe for DhtError<HE> where
HE: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more