Enum Error
pub enum Error {
Bus,
ArbitrationLoss,
NoAcknowledge(NoAcknowledgeSource),
Overrun,
Timeout,
Other,
}
Available on crate feature
i2c
only.Expand description
An I2C error, for controller mode.
Variants§
Bus
A protocol error occurred (e.g., the transaction was terminated earlier than expected).
ArbitrationLoss
Bus arbitration was lost (e.g., because there are multiple controllers on the bus).
NoAcknowledge(NoAcknowledgeSource)
No acknowledgement was received when expected.
Overrun
Overrun of the receive buffer.
Timeout
Timeout when attempting to use the bus; most likely the target device is not connected.
Other
An other error occurred.
Trait Implementations§
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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