pub enum I2cError {
NoAcknowledge,
BusFault,
}Expand description
Failure of an I2cBus operation.
The protocol can only tell the host “not acknowledged”, which the driver
turns into -EREMOTEIO; the distinction is kept for the application.
Variants§
NoAcknowledge
A device did not acknowledge its address or a data byte.
BusFault
Arbitration lost, bus timeout, or a peripheral fault.
Trait Implementations§
impl Copy for I2cError
impl Eq for I2cError
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