pub enum ErrorAwake<E> {
I2C(E),
Device(DeviceErrors),
NoValidApp,
InvalidInputData,
}
Expand description
All possible errors when using an the Ccs811Awake
type.
Variants§
I2C(E)
I²C bus 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<E: Debug> Debug for ErrorAwake<E>
impl<E: Debug> Debug for ErrorAwake<E>
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<E> Freeze for ErrorAwake<E>where
E: Freeze,
impl<E> RefUnwindSafe for ErrorAwake<E>where
E: RefUnwindSafe,
impl<E> Send for ErrorAwake<E>where
E: Send,
impl<E> Sync for ErrorAwake<E>where
E: Sync,
impl<E> Unpin for ErrorAwake<E>where
E: Unpin,
impl<E> UnwindSafe for ErrorAwake<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