pub enum ProgramCounterError<Address, Custom> {
UnalignedInstruction {
address: Address,
},
MemoryAccess(VirtualMemoryError),
Custom(Custom),
}Expand description
Program counter errors
Variants§
UnalignedInstruction
Unaligned instruction
Fields
§
address: AddressAddress of the unaligned instruction fetch
MemoryAccess(VirtualMemoryError)
Memory access error
Custom(Custom)
Custom error
Trait Implementations§
Source§impl<Address, Custom> Display for ProgramCounterError<Address, Custom>
impl<Address, Custom> Display for ProgramCounterError<Address, Custom>
Source§impl<Address, Custom> Error for ProgramCounterError<Address, Custom>
impl<Address, Custom> Error for ProgramCounterError<Address, Custom>
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, I, Custom> From<ProgramCounterError<Address, Custom>> for ExecutionError<Address, I, Custom>
impl<Address, I, Custom> From<ProgramCounterError<Address, Custom>> for ExecutionError<Address, I, Custom>
Source§fn from(source: ProgramCounterError<Address, Custom>) -> Self
fn from(source: ProgramCounterError<Address, Custom>) -> Self
Converts to this type from the input type.
Source§impl<Address, Custom> From<VirtualMemoryError> for ProgramCounterError<Address, Custom>
impl<Address, Custom> From<VirtualMemoryError> for ProgramCounterError<Address, Custom>
Source§fn from(source: VirtualMemoryError) -> Self
fn from(source: VirtualMemoryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Address, Custom> Freeze for ProgramCounterError<Address, Custom>
impl<Address, Custom> RefUnwindSafe for ProgramCounterError<Address, Custom>where
Address: RefUnwindSafe,
Custom: RefUnwindSafe,
impl<Address, Custom> Send for ProgramCounterError<Address, Custom>
impl<Address, Custom> Sync for ProgramCounterError<Address, Custom>
impl<Address, Custom> Unpin for ProgramCounterError<Address, Custom>
impl<Address, Custom> UnwindSafe for ProgramCounterError<Address, Custom>where
Address: UnwindSafe,
Custom: 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