#[non_exhaustive]pub enum I2cError {
Bus,
Arbitration,
Nack,
Overrun,
Pec,
Timeout,
Alert,
}
Expand description
I2C error
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
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