pub enum Error<CommE, PinE> {
I2C(CommE),
Pin(PinE),
Device(DeviceErrors),
NoValidApp,
InvalidInputData,
}
Expand description
All possible errors generated when using the Ccs811
type.
Variants§
I2C(CommE)
I²C bus error
Pin(PinE)
nWAKE pin set error
Device(DeviceErrors)
Errors reported by device
This can contain several errors at the same time.
You can index this list by DeviceError
to see if an specific error variant
has been reported. See the documentation for usage examples.
NoValidApp
No valid application loaded
InvalidInputData
Invalid input data provided to function
Trait Implementations§
Source§impl<CommE, PinE> From<ErrorAwake<CommE>> for Error<CommE, PinE>
impl<CommE, PinE> From<ErrorAwake<CommE>> for Error<CommE, PinE>
Source§fn from(error: ErrorAwake<CommE>) -> Self
fn from(error: ErrorAwake<CommE>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<CommE, PinE> Freeze for Error<CommE, PinE>
impl<CommE, PinE> RefUnwindSafe for Error<CommE, PinE>where
CommE: RefUnwindSafe,
PinE: RefUnwindSafe,
impl<CommE, PinE> Send for Error<CommE, PinE>
impl<CommE, PinE> Sync for Error<CommE, PinE>
impl<CommE, PinE> Unpin for Error<CommE, PinE>
impl<CommE, PinE> UnwindSafe for Error<CommE, PinE>where
CommE: UnwindSafe,
PinE: 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