pub enum I2cError {
Timeout(TimeoutError),
Nak,
}
Expand description
Error returned from I2C methods.
Variants§
Trait Implementations§
Source§impl Error for I2cError
impl Error for I2cError
1.30.0 · 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<TimeoutError> for I2cError
impl From<TimeoutError> for I2cError
Source§fn from(to: TimeoutError) -> Self
fn from(to: TimeoutError) -> Self
Converts to this type from the input type.
impl Copy for I2cError
impl Eq for I2cError
impl StructuralPartialEq for I2cError
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