pub enum DhtError<E> {
Timeout,
ChecksumMismatch,
PinError(E),
}Expand description
Possible errors from the DHT22 driver.
Variants§
Timeout
Timed out waiting for a pin state change.
ChecksumMismatch
Checksum did not match the received data.
PinError(E)
Error from the GPIO pin (input/output).
Trait Implementations§
impl<E: Eq> Eq for DhtError<E>
impl<E: PartialEq> StructuralPartialEq for DhtError<E>
Auto Trait Implementations§
impl<E> Freeze for DhtError<E>where
E: Freeze,
impl<E> RefUnwindSafe for DhtError<E>where
E: RefUnwindSafe,
impl<E> Send for DhtError<E>where
E: Send,
impl<E> Sync for DhtError<E>where
E: Sync,
impl<E> Unpin for DhtError<E>where
E: Unpin,
impl<E> UnsafeUnpin for DhtError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for DhtError<E>where
E: UnwindSafe,
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