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§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
)