pub enum Error {
ClockSetup(ClockError),
FifoError,
ReadFail,
WriteFail,
AddressNack,
ArbitrationLoss,
AddressOutOfRange(u8),
InvalidWriteBufferLength,
InvalidReadBufferLength,
Other,
}Expand description
Error information type
Variants§
ClockSetup(ClockError)
Clock configuration error.
FifoError
FIFO Error
ReadFail
Reading for I2C failed.
WriteFail
Writing to I2C failed.
AddressNack
I2C address NAK condition.
ArbitrationLoss
Bus level arbitration loss.
AddressOutOfRange(u8)
Address out of range.
InvalidWriteBufferLength
Invalid write buffer length.
InvalidReadBufferLength
Invalid read buffer length.
Other
Other internal errors or unexpected state.
Trait Implementations§
impl Copy for Error
impl Eq for Error
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