pub enum DhtError {
Timeout,
Pin,
Checksum,
}
Expand description
The possible DHT errors.
Timeout
is used when we get a timeout while expecting a pulse on the signal line.
Pin
is used, when there is an error with the GPIO library.
Checksum
is used, when the checksum of the data read is not correct.
Variants§
Auto Trait Implementations§
impl Freeze for DhtError
impl RefUnwindSafe for DhtError
impl Send for DhtError
impl Sync for DhtError
impl Unpin for DhtError
impl UnwindSafe for DhtError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more