pub enum EmulatorError {
InvalidBinary {
message: String,
},
MemoryOutOfBounds {
address: u64,
},
InvalidInstruction {
pc: u32,
message: String,
},
ControlFlowError {
message: String,
},
Deadlock {
message: String,
},
DivisionByZero,
StackOverflow {
kind: String,
},
IoError {
message: String,
},
InstructionLimitExceeded {
limit: u64,
executed: u64,
pc: u32,
},
}Variants§
InvalidBinary
MemoryOutOfBounds
InvalidInstruction
ControlFlowError
Deadlock
DivisionByZero
StackOverflow
IoError
InstructionLimitExceeded
Trait Implementations§
Source§impl Debug for EmulatorError
impl Debug for EmulatorError
Source§impl Display for EmulatorError
impl Display for EmulatorError
Source§impl Error for EmulatorError
impl Error for EmulatorError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for EmulatorError
impl RefUnwindSafe for EmulatorError
impl Send for EmulatorError
impl Sync for EmulatorError
impl Unpin for EmulatorError
impl UnsafeUnpin for EmulatorError
impl UnwindSafe for EmulatorError
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