pub enum Error {
Probe(DebugProbeError),
Arm(ArmError),
Riscv(RiscvError),
UnableToOpenProbe(&'static str),
CoreNotFound(usize),
ChipNotFound(RegistryError),
MissingPermissions(String),
Other(Error),
Timeout,
MemoryNotAligned {
address: u64,
alignment: usize,
},
}
Expand description
The overarching error type which contains all possible errors as variants.
Variants§
Probe(DebugProbeError)
An error in the probe driver occurred.
Arm(ArmError)
An ARM specific error occured.
Riscv(RiscvError)
A RISCV specific error occured.
UnableToOpenProbe(&'static str)
The probe could not be opened.
CoreNotFound(usize)
The core with given ID does not exist.
ChipNotFound(RegistryError)
The given chip does not exist.
MissingPermissions(String)
An operation was not performed because the required permissions were not given.
This can for example happen when the core is locked and needs to be erased to be unlocked. Then the correct permission needs to be given to automatically unlock the core to prevent accidental erases.
Other(Error)
Any other error occurred.
Timeout
A timeout occured during an operation
MemoryNotAligned
Fields
Unaligned memory access
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<DebugProbeError> for Error
impl From<DebugProbeError> for Error
source§fn from(source: DebugProbeError) -> Self
fn from(source: DebugProbeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for DebugError
impl From<Error> for DebugError
source§impl From<Error> for FlashError
impl From<Error> for FlashError
source§impl From<RegistryError> for Error
impl From<RegistryError> for Error
source§fn from(source: RegistryError) -> Self
fn from(source: RegistryError) -> Self
Converts to this type from the input type.
source§impl From<RiscvError> for ProbeRsError
impl From<RiscvError> for ProbeRsError
source§fn from(err: RiscvError) -> Self
fn from(err: RiscvError) -> Self
Converts to this type from the input type.