Enum stm32l0xx_hal::flash::Error
source · [−]pub enum Error {
AbortedByFetch,
NotErased,
ReadProtection,
ConfigMismatch,
InvalidSize,
InvalidAlignment,
WriteProtection,
}
Variants
AbortedByFetch
Write/erase was aborted by fetch operation
See FWWERR bit in SR register.
NotErased
Failed to write memory that was not erased
See NOTZEROERR bit in SR register.
ReadProtection
Attempted to read protected memory
See RDERR bit in SR register.
ConfigMismatch
Configuration mismatch
See OPTVERR bit in SR register.
InvalidSize
Size of data to program is not correct
See SIZERR bit in SR register.
InvalidAlignment
Incorrect alignment when programming half-page
See PGAERR bit in SR register.
WriteProtection
Attempted to write to protected memory
See WRPERR in SR register.
Trait Implementations
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