pub enum Error<I2CError> {
ChecksumFailed,
I2C(I2CError),
}Expand description
Any error that can occur when using this library.
Variants§
ChecksumFailed
A packet was received from the FS3000 but it’s checksum was invalid. This typically indicates a faulty link or device.
I2C(I2CError)
Any I2C error that occurs when communicating with the device.
Trait Implementations§
Source§impl<I2CError> Error for Error<I2CError>
impl<I2CError> Error for Error<I2CError>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<I2CError> Freeze for Error<I2CError>where
I2CError: Freeze,
impl<I2CError> RefUnwindSafe for Error<I2CError>where
I2CError: RefUnwindSafe,
impl<I2CError> Send for Error<I2CError>where
I2CError: Send,
impl<I2CError> Sync for Error<I2CError>where
I2CError: Sync,
impl<I2CError> Unpin for Error<I2CError>where
I2CError: Unpin,
impl<I2CError> UnwindSafe for Error<I2CError>where
I2CError: 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