pub enum VmiError {
}
Expand description
An error that can occur when working with the VMI.
Variants§
Driver(Box<dyn Error + Send + Sync>)
An error occurred in the VMI driver.
Os(Box<dyn Error + Send + Sync>)
An OS-specific error occurred.
Io(Error)
An I/O error occurred.
Isr(Error)
An error occurred while parsing symbols.
Translation(PageFaults)
A translation error occurred.
InvalidAddressWidth
The given address has invalid width.
InvalidTimeout
The given timeout is invalid.
NotSupported
Operation not supported.
OutOfBounds
Out of bounds.
RootNotPresent
Root not present.
Timeout
Timeout.
ViewNotFound
The view was not found.
Other(&'static str)
Other error.
Implementations§
Source§impl VmiError
impl VmiError
Sourcepub fn page_fault(pf: impl Into<AddressContext>) -> Self
pub fn page_fault(pf: impl Into<AddressContext>) -> Self
Creates a new page fault error.
Sourcepub fn page_faults(pfs: impl IntoIterator<Item = AddressContext>) -> Self
pub fn page_faults(pfs: impl IntoIterator<Item = AddressContext>) -> Self
Creates a new page fault error with multiple page faults.
Trait Implementations§
Source§impl Error for VmiError
impl Error for VmiError
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 VmiError
impl !RefUnwindSafe for VmiError
impl Send for VmiError
impl Sync for VmiError
impl Unpin for VmiError
impl !UnwindSafe for VmiError
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