Struct PageFaultError
pub struct PageFaultError { /* private fields */ }Expand description
An error returned by a page fault handler in GuestMemoryAccess::page_fault.
Implementations§
§impl PageFaultError
impl PageFaultError
pub fn new(
kind: GuestMemoryErrorKind,
err: impl Into<Box<dyn Error + Sync + Send>>,
) -> PageFaultError
pub fn new( kind: GuestMemoryErrorKind, err: impl Into<Box<dyn Error + Sync + Send>>, ) -> PageFaultError
Returns a new page fault error.
Auto Trait Implementations§
impl Freeze for PageFaultError
impl !RefUnwindSafe for PageFaultError
impl Send for PageFaultError
impl Sync for PageFaultError
impl Unpin for PageFaultError
impl UnsafeUnpin for PageFaultError
impl !UnwindSafe for PageFaultError
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