pub enum Error<E> {
I2C(E),
TooMuchData,
InvalidAddr,
}Expand description
All possible errors in this crate
Variants§
I2C(E)
I²C bus error
TooMuchData
Too much data passed for a write operation
This occurs when trying to write more data than fits in a single page, or when the write operation would cross a page boundary.
InvalidAddr
Memory address is out of range
The provided address exceeds the device’s memory capacity (0x0000-0x0FFF).
Trait Implementations§
Source§impl<E: Debug> NorFlashError for Error<E>
impl<E: Debug> NorFlashError for Error<E>
Source§fn kind(&self) -> NorFlashErrorKind
fn kind(&self) -> NorFlashErrorKind
Convert a specific NOR flash error into a generic error kind.
impl<E> StructuralPartialEq for Error<E>
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnwindSafe for Error<E>where
E: UnwindSafe,
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