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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<BUS: Copy> Copy for I2cDeviceError<BUS>
Source§impl<BUS: Debug> Debug for I2cDeviceError<BUS>
impl<BUS: Debug> Debug for I2cDeviceError<BUS>
Source§impl<BUS> Display for I2cDeviceError<BUS>where
BUS: Display,
impl<BUS> Display for I2cDeviceError<BUS>where
BUS: Display,
impl<BUS: Eq> Eq for I2cDeviceError<BUS>
Source§impl<BUS> Error for I2cDeviceError<BUS>
impl<BUS> Error for I2cDeviceError<BUS>
Source§impl<BUS> Error for I2cDeviceError<BUS>where
BUS: Error + 'static,
impl<BUS> Error for I2cDeviceError<BUS>where
BUS: Error + 'static,
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<BUS: PartialEq> PartialEq for I2cDeviceError<BUS>
impl<BUS: PartialEq> PartialEq for I2cDeviceError<BUS>
impl<BUS: PartialEq> 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> UnsafeUnpin for I2cDeviceError<BUS>where
BUS: UnsafeUnpin,
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