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>
impl<BUS: Copy> Copy for I2cDeviceError<BUS>
impl<BUS: Eq> Eq for I2cDeviceError<BUS>
impl<BUS> StructuralPartialEq for I2cDeviceError<BUS>
Auto Trait Implementations§
impl<BUS> Freeze for I2cDeviceError<BUS>where
BUS: Freeze,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)