pub struct ModeChangeError<E, DEV> {
pub dev: DEV,
pub error: E,
}
Expand description
Error type for mode changes when using Ccs811
.
This allows to retrieve the unchanged device in case of an error.
Fields§
§dev: DEV
Unchanged device.
error: E
Error occurred.
Trait Implementations§
Auto Trait Implementations§
impl<E, DEV> Freeze for ModeChangeError<E, DEV>
impl<E, DEV> RefUnwindSafe for ModeChangeError<E, DEV>where
DEV: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, DEV> Send for ModeChangeError<E, DEV>
impl<E, DEV> Sync for ModeChangeError<E, DEV>
impl<E, DEV> Unpin for ModeChangeError<E, DEV>
impl<E, DEV> UnwindSafe for ModeChangeError<E, DEV>where
DEV: UnwindSafe,
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