#[non_exhaustive]
pub enum NorFlashErrorKind {
NotAligned,
OutOfBounds,
Other,
}Expand description
NOR flash error kinds.
NOR flash implementations must map their error to those generic error kinds through the
NorFlashError trait.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotAligned
The arguments are not properly aligned.
OutOfBounds
The arguments are out of bounds.
Other
Error specific to the implementation.
Trait Implementations
sourceimpl Clone for NorFlashErrorKind
impl Clone for NorFlashErrorKind
sourcefn clone(&self) -> NorFlashErrorKind
fn clone(&self) -> NorFlashErrorKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for NorFlashErrorKind
impl Debug for NorFlashErrorKind
sourceimpl Display for NorFlashErrorKind
impl Display for NorFlashErrorKind
sourceimpl Hash for NorFlashErrorKind
impl Hash for NorFlashErrorKind
sourceimpl NorFlashError for NorFlashErrorKind
impl NorFlashError for NorFlashErrorKind
sourcefn kind(&self) -> NorFlashErrorKind
fn kind(&self) -> NorFlashErrorKind
Convert a specific NOR flash error into a generic error kind.
sourceimpl Ord for NorFlashErrorKind
impl Ord for NorFlashErrorKind
sourceimpl PartialOrd<NorFlashErrorKind> for NorFlashErrorKind
impl PartialOrd<NorFlashErrorKind> for NorFlashErrorKind
sourcefn partial_cmp(&self, other: &NorFlashErrorKind) -> Option<Ordering>
fn partial_cmp(&self, other: &NorFlashErrorKind) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for NorFlashErrorKind
impl Eq for NorFlashErrorKind
impl StructuralEq for NorFlashErrorKind
impl StructuralPartialEq for NorFlashErrorKind
Auto Trait Implementations
impl RefUnwindSafe for NorFlashErrorKind
impl Send for NorFlashErrorKind
impl Sync for NorFlashErrorKind
impl Unpin for NorFlashErrorKind
impl UnwindSafe for NorFlashErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more