pub enum RiscvError {
DmiTransfer(DmiOperationStatus),
DebugProbe(DebugProbeError),
Timeout,
AbstractCommand(AbstractCommandErrorKind),
RequestNotAcknowledged,
UnsupportedDebugTransportModuleVersion(u8),
UnsupportedDebugModuleVersion(DebugModuleVersion),
UnsupportedProgramBufferRegister(usize),
ProgramBufferTooSmall,
UnsupportedBusAccessWidth(RiscvBusAccess),
SystemBusAccess,
UnexpectedTriggerType(u32),
}
Expand description
Something error occurered when working with the RISC-V core.
Variants
DmiTransfer(DmiOperationStatus)
An error during read/write of the DMI register happened.
DebugProbe(DebugProbeError)
An error with operating the debug probe occurred.
Timeout
A timeout occurred during JTAG register access.
AbstractCommand(AbstractCommandErrorKind)
An error occurred during the execution of an abstract command.
RequestNotAcknowledged
The request for reset, resume or halt was not acknowledged.
UnsupportedDebugTransportModuleVersion(u8)
This debug transport module (DTM) version is currently not supported.
UnsupportedDebugModuleVersion(DebugModuleVersion)
This version of the debug module is not supported.
UnsupportedProgramBufferRegister(usize)
The given program buffer register is not supported.
ProgramBufferTooSmall
The program buffer is too small for the supplied program.
UnsupportedBusAccessWidth(RiscvBusAccess)
Memory width larger than 32 bits is not supported yet.
SystemBusAccess
An error during system bus access occurred.
UnexpectedTriggerType(u32)
The given trigger type is not available for the address breakpoint.
Trait Implementations
sourceimpl Debug for RiscvError
impl Debug for RiscvError
sourceimpl Display for RiscvError
impl Display for RiscvError
sourceimpl Error for RiscvError
impl Error for RiscvError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<DebugProbeError> for RiscvError
impl From<DebugProbeError> for RiscvError
sourcefn from(source: DebugProbeError) -> Self
fn from(source: DebugProbeError) -> Self
Converts to this type from the input type.
sourceimpl From<RiscvError> for ProbeRsError
impl From<RiscvError> for ProbeRsError
sourcefn from(err: RiscvError) -> Self
fn from(err: RiscvError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for RiscvError
impl Send for RiscvError
impl Sync for RiscvError
impl Unpin for RiscvError
impl !UnwindSafe for RiscvError
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