Enum lpc55::bootloader::Error
source · [−]pub enum Error {
Generic(GenericError),
FlashDriver(FlashDriverError),
PropertyStore(PropertyStoreError),
CrcChecker(CrcCheckerError),
SbLoader(SbLoaderError),
Unknown(u32),
}
Expand description
Bootloader commands return a “status”. The non-zero statii can be split
as 100*group + code
. We map these groups into enum variants, containing
the code interpreted as an error the area.
TODO: To implement StdError via thiserror::Error, we need to add error messages to all the error variants.
Variants
Generic(GenericError)
FlashDriver(FlashDriverError)
PropertyStore(PropertyStoreError)
CrcChecker(CrcCheckerError)
SbLoader(SbLoaderError)
Unknown(u32)
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<Error> for (ErrorGroup, u8)
impl From<Error> for (ErrorGroup, u8)
sourcefn from(error: BootloaderError) -> Self
fn from(error: BootloaderError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for u32
impl From<Error> for u32
sourcefn from(error: BootloaderError) -> u32
fn from(error: BootloaderError) -> u32
Converts to this type from the input type.
sourceimpl From<u32> for BootloaderError
impl From<u32> for BootloaderError
impl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.