pub enum Error<E, PinError> {
CommErr(E),
PinError(PinError),
InvalidDataRate,
InvalidMode,
InvalidRange,
WriteToReadOnly,
WrongAddress,
NotImplemented,
}Variants§
CommErr(E)
Communication error
PinError(PinError)
Pin error
InvalidDataRate
Invalid data rate selection
InvalidMode
Invalid operating mode selection
InvalidRange
Invalid full-scale selection
WriteToReadOnly
Attempted to write to a read-only register
WrongAddress
Invalid address provided
NotImplemented
Methods not implemented
Trait Implementations§
Auto Trait Implementations§
impl<E, PinError> Freeze for Error<E, PinError>
impl<E, PinError> RefUnwindSafe for Error<E, PinError>where
E: RefUnwindSafe,
PinError: RefUnwindSafe,
impl<E, PinError> Send for Error<E, PinError>
impl<E, PinError> Sync for Error<E, PinError>
impl<E, PinError> Unpin for Error<E, PinError>
impl<E, PinError> UnsafeUnpin for Error<E, PinError>where
E: UnsafeUnpin,
PinError: UnsafeUnpin,
impl<E, PinError> UnwindSafe for Error<E, PinError>where
E: UnwindSafe,
PinError: 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