pub enum PartitionError<E> {
OutOfBounds,
NotAligned,
Device(E),
}Expand description
Failure of an access through a Partition.
Converts into Error::Flash by way of
NorFlashError::kind, so a SensorDb over a partition reports flash
errors exactly as it does over a bare driver.
Variants§
OutOfBounds
The access ran past the end of the partition.
The partition is what turns this into an error instead of a write to whatever else lives on the chip.
NotAligned
The access was not aligned to the device’s read, write or erase granularity.
Device(E)
The underlying device failed.
Trait Implementations§
Source§impl<E: Clone> Clone for PartitionError<E>
impl<E: Clone> Clone for PartitionError<E>
impl<E: Copy> Copy for PartitionError<E>
Source§impl<E: Debug> Debug for PartitionError<E>
impl<E: Debug> Debug for PartitionError<E>
impl<E: Eq> Eq for PartitionError<E>
Source§impl<E: NorFlashError> NorFlashError for PartitionError<E>
impl<E: NorFlashError> NorFlashError for PartitionError<E>
Source§fn kind(&self) -> NorFlashErrorKind
fn kind(&self) -> NorFlashErrorKind
Convert a specific NOR flash error into a generic error kind.
Source§impl<E: PartialEq> PartialEq for PartitionError<E>
impl<E: PartialEq> PartialEq for PartitionError<E>
impl<E: PartialEq> StructuralPartialEq for PartitionError<E>
Auto Trait Implementations§
impl<E> Freeze for PartitionError<E>where
E: Freeze,
impl<E> RefUnwindSafe for PartitionError<E>where
E: RefUnwindSafe,
impl<E> Send for PartitionError<E>where
E: Send,
impl<E> Sync for PartitionError<E>where
E: Sync,
impl<E> Unpin for PartitionError<E>where
E: Unpin,
impl<E> UnsafeUnpin for PartitionError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for PartitionError<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