pub enum RtError {
Other(String),
IoError(Error),
InvalidUtf8Byte(usize),
InvalidOperand,
NoOpInst,
NoOperand,
InvalidAddr(usize),
InvalidIndirectAddr {
src: usize,
redirect: usize,
},
InvalidIndexedAddr {
src: usize,
offset: usize,
},
InvalidMultiOp,
}Expand description
Represents all possible runtime errors
Variants§
Other(String)
IoError(Error)
InvalidUtf8Byte(usize)
InvalidOperand
NoOpInst
NoOperand
InvalidAddr(usize)
InvalidIndirectAddr
InvalidIndexedAddr
InvalidMultiOp
Trait Implementations§
Source§impl Error for RtError
impl Error for RtError
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 !RefUnwindSafe for RtError
impl !UnwindSafe for RtError
impl Freeze for RtError
impl Send for RtError
impl Sync for RtError
impl Unpin for RtError
impl UnsafeUnpin for RtError
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