pub enum EepromError {
I2cError(i32),
InvalidAddress,
DeviceNotReady,
WriteProtected,
Timeout,
}Expand description
Error types for EEPROM operations
Variants§
I2cError(i32)
I2C communication error
InvalidAddress
Invalid address
DeviceNotReady
Device not ready
WriteProtected
Write protected
Timeout
Timeout occurred
Trait Implementations§
Source§impl Clone for EepromError
impl Clone for EepromError
Source§fn clone(&self) -> EepromError
fn clone(&self) -> EepromError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EepromError
impl Debug for EepromError
Source§impl From<i32> for EepromError
impl From<i32> for EepromError
Source§impl PartialEq for EepromError
impl PartialEq for EepromError
impl Copy for EepromError
impl Eq for EepromError
impl StructuralPartialEq for EepromError
Auto Trait Implementations§
impl Freeze for EepromError
impl RefUnwindSafe for EepromError
impl Send for EepromError
impl Sync for EepromError
impl Unpin for EepromError
impl UnwindSafe for EepromError
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