pub enum Error<E> {
Bus(E),
CalibrationDataError,
ConversionError,
InvalidDevice,
UnsupportedMeasurement,
Timeout,
}Variants§
Bus(E)
CalibrationDataError
ConversionError
InvalidDevice
UnsupportedMeasurement
Timeout
The device did not report a completed conversion within the driver’s
polling limit. Added in 0.1.1; the enum is not #[non_exhaustive], so a
caller matching exhaustively must handle it.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
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> UnsafeUnpin for Error<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for Error<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