Enum aht20_driver::Error
source · [−]pub enum Error<E> {
I2c(E),
InvalidCrc,
UnexpectedBusy,
Internal,
}
Expand description
Driver errors.
Variants
I2c(E)
I2C bus error
InvalidCrc
CRC validation failed
UnexpectedBusy
Unexpectedly not ready - this can happen when the sensor sends back “busy” but the I2C data gets corrupted and we receive “ready”, then later the CRC-checked status byte correctly reports “busy” and we have to abort the measurement.
Internal
Errors such as overflowing the stack.
Trait Implementations
impl<E> StructuralPartialEq for Error<E>
Auto Trait Implementations
impl<E> RefUnwindSafe for Error<E> where
E: RefUnwindSafe,
impl<E> Send for Error<E> where
E: Send,
impl<E> Sync for Error<E> where
E: Sync,
impl<E> Unpin for Error<E> where
E: Unpin,
impl<E> UnwindSafe for Error<E> where
E: 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