pub enum Scd30Error<I2cErr: Error> {
DataError(DataError),
I2cError(I2cErr),
SentDataToBig,
}
Expand description
Error variants emitted by this library.
Variants§
DataError(DataError)
Emitted when an error handling the data has occurred.
I2cError(I2cErr)
Emitted when an error with the underlying I2C bus has occurred.
SentDataToBig
Emitted when the argument intended to be sent to the sensor is bigger than 16-bits. Should only occur if modifications to this library where made that send such data.
Trait Implementations§
Source§impl<I2cErr> Display for Scd30Error<I2cErr>
impl<I2cErr> Display for Scd30Error<I2cErr>
Source§impl<I2cErr> Error for Scd30Error<I2cErr>
impl<I2cErr> Error for Scd30Error<I2cErr>
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()
Source§impl<I2cErr: Error> From<I2cErr> for Scd30Error<I2cErr>
impl<I2cErr: Error> From<I2cErr> for Scd30Error<I2cErr>
impl<I2cErr: Error> StructuralPartialEq for Scd30Error<I2cErr>
Auto Trait Implementations§
impl<I2cErr> Freeze for Scd30Error<I2cErr>where
I2cErr: Freeze,
impl<I2cErr> RefUnwindSafe for Scd30Error<I2cErr>where
I2cErr: RefUnwindSafe,
impl<I2cErr> Send for Scd30Error<I2cErr>where
I2cErr: Send,
impl<I2cErr> Sync for Scd30Error<I2cErr>where
I2cErr: Sync,
impl<I2cErr> Unpin for Scd30Error<I2cErr>where
I2cErr: Unpin,
impl<I2cErr> UnwindSafe for Scd30Error<I2cErr>where
I2cErr: 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