pub enum Hts221Error<E> {
I2c(E),
NotCalibrated,
InvalidSensor,
}Expand description
Error returned by Hts221 driver
Variants§
I2c(E)
Error from I2C.
NotCalibrated
Attempting to read before calibration.
InvalidSensor
Not the expected sensor device
Trait Implementations§
Source§impl<E> From<E> for Hts221Error<E>where
E: Send,
impl<E> From<E> for Hts221Error<E>where
E: Send,
Source§fn from(e: E) -> Hts221Error<E>
fn from(e: E) -> Hts221Error<E>
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for Hts221Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Hts221Error<E>where
E: RefUnwindSafe,
impl<E> Send for Hts221Error<E>where
E: Send,
impl<E> Sync for Hts221Error<E>where
E: Sync,
impl<E> Unpin for Hts221Error<E>where
E: Unpin,
impl<E> UnwindSafe for Hts221Error<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