#[repr(usize)]pub enum Exception {
Show 14 variants
InstructionMisaligned = 0,
InstructionFault = 1,
IllegalInstruction = 2,
Breakpoint = 3,
LoadMisaligned = 4,
LoadFault = 5,
StoreMisaligned = 6,
StoreFault = 7,
UserEnvCall = 8,
SupervisorEnvCall = 9,
MachineEnvCall = 11,
InstructionPageFault = 12,
LoadPageFault = 13,
StorePageFault = 15,
}Expand description
Standard M-mode RISC-V exceptions
Variants§
InstructionMisaligned = 0
InstructionFault = 1
IllegalInstruction = 2
Breakpoint = 3
LoadMisaligned = 4
LoadFault = 5
StoreMisaligned = 6
StoreFault = 7
UserEnvCall = 8
SupervisorEnvCall = 9
MachineEnvCall = 11
InstructionPageFault = 12
LoadPageFault = 13
StorePageFault = 15
Trait Implementations§
Source§impl ExceptionNumber for Exception
SAFETY: Exception represents the standard RISC-V exceptions
impl ExceptionNumber for Exception
SAFETY: Exception represents the standard RISC-V exceptions
impl Copy for Exception
impl Eq for Exception
impl StructuralPartialEq for Exception
Auto Trait Implementations§
impl Freeze for Exception
impl RefUnwindSafe for Exception
impl Send for Exception
impl Sync for Exception
impl Unpin for Exception
impl UnwindSafe for Exception
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