pub enum I2cDeviceError<BUS> {
I2c(BUS),
Config,
}
Expand description
Error returned by I2C device implementations in this crate.
Variants§
I2c(BUS)
An operation on the inner I2C bus failed.
Config
Configuration of the inner I2C bus failed.
Trait Implementations§
source§impl<BUS: Clone> Clone for I2cDeviceError<BUS>
impl<BUS: Clone> Clone for I2cDeviceError<BUS>
source§fn clone(&self) -> I2cDeviceError<BUS>
fn clone(&self) -> I2cDeviceError<BUS>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<BUS: Debug> Debug for I2cDeviceError<BUS>
impl<BUS: Debug> Debug for I2cDeviceError<BUS>
source§impl<BUS> Error for I2cDeviceError<BUS>
impl<BUS> Error for I2cDeviceError<BUS>
source§impl<BUS: PartialEq> PartialEq for I2cDeviceError<BUS>
impl<BUS: PartialEq> PartialEq for I2cDeviceError<BUS>
source§fn eq(&self, other: &I2cDeviceError<BUS>) -> bool
fn eq(&self, other: &I2cDeviceError<BUS>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<BUS: Copy> Copy for I2cDeviceError<BUS>
impl<BUS: Eq> Eq for I2cDeviceError<BUS>
impl<BUS> StructuralEq for I2cDeviceError<BUS>
impl<BUS> StructuralPartialEq for I2cDeviceError<BUS>
Auto Trait Implementations§
impl<BUS> RefUnwindSafe for I2cDeviceError<BUS>where
BUS: RefUnwindSafe,
impl<BUS> Send for I2cDeviceError<BUS>where
BUS: Send,
impl<BUS> Sync for I2cDeviceError<BUS>where
BUS: Sync,
impl<BUS> Unpin for I2cDeviceError<BUS>where
BUS: Unpin,
impl<BUS> UnwindSafe for I2cDeviceError<BUS>where
BUS: 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