pub enum Error<D: Error, P: Error> {
Reset,
I2cLockup,
Io(P),
I2c(D),
}Variants§
Trait Implementations§
impl<D: Copy + Error, P: Copy + Error> Copy for Error<D, P>
impl<D: Eq + Error, P: Eq + Error> Eq for Error<D, P>
impl<D: Error, P: Error> StructuralPartialEq for Error<D, P>
Auto Trait Implementations§
impl<D, P> Freeze for Error<D, P>
impl<D, P> RefUnwindSafe for Error<D, P>where
P: RefUnwindSafe,
D: RefUnwindSafe,
impl<D, P> Send for Error<D, P>
impl<D, P> Sync for Error<D, P>
impl<D, P> Unpin for Error<D, P>
impl<D, P> UnwindSafe for Error<D, P>where
P: UnwindSafe,
D: 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