pub enum I2cError {
Arbitration,
Nack,
Overrun,
}Expand description
I2C error.
Variants§
Arbitration
Arbitration lost
Nack
ACK not received (either to the address or to a data byte)
Overrun
Overrun error
Trait Implementations§
impl Copy for I2cError
impl Eq for I2cError
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()
impl StructuralPartialEq for I2cError
Auto Trait Implementations§
impl Forget for I2cError
impl Freeze for I2cError
impl Move for I2cError
impl RefUnwindSafe for I2cError
impl Send for I2cError
impl Sync for I2cError
impl Unpin for I2cError
impl UnsafeUnpin 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