pub enum ExecutionError<Address, CustomError = CustomErrorPlaceholder> {
UnalignedInstructionFetch {
address: Address,
},
ProgramCounter(ProgramCounterError<Address, CustomError>),
MemoryAccess(VirtualMemoryError),
EcallUnsupported {
address: Address,
},
IllegalInstruction {
address: Address,
},
InvalidInstruction {
address: Address,
instruction: u32,
},
CsrError(CsrError<CustomError>),
Custom(CustomError),
}Expand description
Execution errors
Variants§
UnalignedInstructionFetch
Unaligned instruction fetch
Fields
§
address: AddressAddress of the unaligned instruction fetch
ProgramCounter(ProgramCounterError<Address, CustomError>)
Program counter error
MemoryAccess(VirtualMemoryError)
Memory access error
EcallUnsupported
Unsupported ecall instruction
Fields
§
address: AddressAddress of the unsupported instruction
IllegalInstruction
Unimplemented/illegal instruction
Fields
§
address: AddressAddress of the unimp instruction
InvalidInstruction
Invalid instruction
Fields
§
address: AddressAddress of the invalid instruction
CsrError(CsrError<CustomError>)
CSR error
Custom(CustomError)
Custom error
Trait Implementations§
Source§impl<Address, CustomError> Display for ExecutionError<Address, CustomError>
impl<Address, CustomError> Display for ExecutionError<Address, CustomError>
Source§impl<Address, CustomError> Error for ExecutionError<Address, CustomError>
impl<Address, CustomError> Error for ExecutionError<Address, CustomError>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Address, CustomError> From<CsrError<CustomError>> for ExecutionError<Address, CustomError>
impl<Address, CustomError> From<CsrError<CustomError>> for ExecutionError<Address, CustomError>
Source§impl<Address, CustomError> From<ProgramCounterError<Address, CustomError>> for ExecutionError<Address, CustomError>
impl<Address, CustomError> From<ProgramCounterError<Address, CustomError>> for ExecutionError<Address, CustomError>
Source§fn from(source: ProgramCounterError<Address, CustomError>) -> Self
fn from(source: ProgramCounterError<Address, CustomError>) -> Self
Converts to this type from the input type.
Source§impl<Address, CustomError> From<VirtualMemoryError> for ExecutionError<Address, CustomError>
impl<Address, CustomError> From<VirtualMemoryError> for ExecutionError<Address, CustomError>
Source§fn from(source: VirtualMemoryError) -> Self
fn from(source: VirtualMemoryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Address, CustomError> Freeze for ExecutionError<Address, CustomError>
impl<Address, CustomError> RefUnwindSafe for ExecutionError<Address, CustomError>where
Address: RefUnwindSafe,
CustomError: RefUnwindSafe,
impl<Address, CustomError> Send for ExecutionError<Address, CustomError>
impl<Address, CustomError> Sync for ExecutionError<Address, CustomError>
impl<Address, CustomError> Unpin for ExecutionError<Address, CustomError>
impl<Address, CustomError> UnsafeUnpin for ExecutionError<Address, CustomError>where
Address: UnsafeUnpin,
CustomError: UnsafeUnpin,
impl<Address, CustomError> UnwindSafe for ExecutionError<Address, CustomError>where
Address: UnwindSafe,
CustomError: UnwindSafe,
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