[][src]Struct embedded_ccs811::ModeChangeError

pub struct ModeChangeError<E, DEV> {
    pub dev: DEV,
    pub error: E,
}

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.

Auto Trait Implementations

impl<E, DEV> RefUnwindSafe for ModeChangeError<E, DEV> where
    DEV: RefUnwindSafe,
    E: RefUnwindSafe

impl<E, DEV> Send for ModeChangeError<E, DEV> where
    DEV: Send,
    E: Send

impl<E, DEV> Sync for ModeChangeError<E, DEV> where
    DEV: Sync,
    E: Sync

impl<E, DEV> Unpin for ModeChangeError<E, DEV> where
    DEV: Unpin,
    E: Unpin

impl<E, DEV> UnwindSafe for ModeChangeError<E, DEV> where
    DEV: UnwindSafe,
    E: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.