pub struct VmError { /* private fields */ }Implementations§
Source§impl VmError
impl VmError
pub fn missing_module(sym: &str) -> Self
pub fn missing_symbol(sym: &str) -> Self
pub fn missing_field(field: &str, typ: &str) -> Self
pub fn deref_null_ptr() -> Self
pub fn new(err: impl Into<Box<dyn Error + Send + Sync>>) -> Self
pub fn with_context( msg: impl ToString, err: impl Into<Box<dyn Error + Send + Sync>>, ) -> Self
pub fn unsupported_architecture() -> Self
pub fn unsupported() -> Self
pub fn unimplemented() -> Self
pub fn print_backtrace(&self) -> String
Trait Implementations§
Source§impl Error for VmError
impl Error for VmError
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 From<MemoryAccessError> for VmError
impl From<MemoryAccessError> for VmError
Source§fn from(err: MemoryAccessError) -> Self
fn from(err: MemoryAccessError) -> Self
Converts to this type from the input type.
Source§impl From<TranslationError> for VmError
impl From<TranslationError> for VmError
Source§fn from(err: TranslationError) -> Self
fn from(err: TranslationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VmError
impl !RefUnwindSafe for VmError
impl Send for VmError
impl Sync for VmError
impl Unpin for VmError
impl !UnwindSafe for VmError
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