pub struct I2CError { /* private fields */ }
Expand description
Error type wrapping LinuxI2CError to implement embedded_hal::i2c::ErrorKind
Implementations§
Trait Implementations§
Source§impl Error for I2CError
impl Error for I2CError
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 From<LinuxI2CError> for I2CError
impl From<LinuxI2CError> for I2CError
Source§fn from(err: LinuxI2CError) -> Self
fn from(err: LinuxI2CError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for I2CError
impl !RefUnwindSafe for I2CError
impl Send for I2CError
impl Sync for I2CError
impl Unpin for I2CError
impl !UnwindSafe for I2CError
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