pub enum DhtError<DeviceError> {
Handshake,
Timeout(Microseconds),
Checksum {
correct: u8,
actual: u8,
},
DeviceError(DeviceError),
}Variants§
Handshake
Initial handshake with the sensor was unsuccessful. Make sure all physical connections are working, individual reads of the sensor are seperated by at least 2 seconds and the pin state is high while idle
Timeout(Microseconds)
Timeout while waiting for the sensor to respond
Checksum
The checksum of the read data does not match with the provided checksum
DeviceError(DeviceError)
While setting the pin state the DeviceError occured
Trait Implementations§
Auto Trait Implementations§
impl<DeviceError> Freeze for DhtError<DeviceError>where
DeviceError: Freeze,
impl<DeviceError> RefUnwindSafe for DhtError<DeviceError>where
DeviceError: RefUnwindSafe,
impl<DeviceError> Send for DhtError<DeviceError>where
DeviceError: Send,
impl<DeviceError> Sync for DhtError<DeviceError>where
DeviceError: Sync,
impl<DeviceError> Unpin for DhtError<DeviceError>where
DeviceError: Unpin,
impl<DeviceError> UnwindSafe for DhtError<DeviceError>where
DeviceError: 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