Enum atmega_hal::i2c::Error
source · [−]#[repr(u8)]
pub enum Error {
ArbitrationLost,
AddressNack,
DataNack,
BusError,
Unknown,
}
Expand description
I2C Error
Variants
ArbitrationLost
Lost arbitration while trying to acquire bus
AddressNack
No slave answered for this address or a slave replied NACK
DataNack
Slave replied NACK to sent data
BusError
A bus-error occured
Unknown
An unknown error occured. The bus might be in an unknown state.
Trait Implementations
impl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more