Enum tmp1x2::ModeChangeError
source · pub enum ModeChangeError<E, DEV> {
I2C(E, DEV),
}
Expand description
Error type for mode changes.
This allows to retrieve the unchanged device in case of an error.
Variants§
I2C(E, DEV)
I²C bus error while changing mode.
E
is the error that happened.
DEV
is the device with the mode unchanged.
Trait Implementations§
Auto Trait Implementations§
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