pub enum I2cError {
Parse,
Invalid,
}Expand description
Why a request could not be honored, before any bus was touched.
Variants§
Parse
The payload is truncated or its structure cannot be parsed.
Invalid
The structure parses but a value breaks the protocol’s rules: an address above 7 bits, an unknown operation kind, an empty operation, no operations at all, or a scan range that is not ascending or reaches past 0x7F.
Implementations§
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)