#[repr(u8)]pub enum Cmderr {
NO_ERROR = 0,
BUSY = 1,
NOT_SUPPORTED = 2,
EXCEPTION = 3,
HALT_RESUME = 4,
BUS = 5,
_RESERVED_6 = 6,
OTHER = 7,
}
Variants§
NO_ERROR = 0
No error.
BUSY = 1
An abstract command was executing while command, abstractcs, or abstractauto was written, or when one of the data or progbuf registers was read or written. This status is only written if cmderr contains 0
NOT_SUPPORTED = 2
The requested command is notsupported, regardless of whether the hart is running or not.
EXCEPTION = 3
An exception occurred while executing the command (e.g. while executing theProgram Buffer).
HALT_RESUME = 4
The abstract command couldn’t execute because the hart wasn’t in the required state (running/halted). or unavailable.
BUS = 5
The abstract command failed due to abus error (e.g. alignment, access size, or timeout).
_RESERVED_6 = 6
OTHER = 7
The command failed for another reason.
Implementations§
Trait Implementations§
Source§impl Ord for Cmderr
impl Ord for Cmderr
Source§impl PartialOrd for Cmderr
impl PartialOrd for Cmderr
impl Copy for Cmderr
impl Eq for Cmderr
impl StructuralPartialEq for Cmderr
Auto Trait Implementations§
impl Freeze for Cmderr
impl RefUnwindSafe for Cmderr
impl Send for Cmderr
impl Sync for Cmderr
impl Unpin for Cmderr
impl UnwindSafe for Cmderr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)