Struct GuestMemoryBackingError
pub struct GuestMemoryBackingError { /* private fields */ }Expand description
A memory access error returned by a GuestMemoryAccess trait method.
Implementations§
§impl GuestMemoryBackingError
impl GuestMemoryBackingError
pub fn new(
kind: GuestMemoryErrorKind,
gpa: u64,
err: impl Into<Box<dyn Error + Sync + Send>>,
) -> GuestMemoryBackingError
pub fn new( kind: GuestMemoryErrorKind, gpa: u64, err: impl Into<Box<dyn Error + Sync + Send>>, ) -> GuestMemoryBackingError
Returns a new error for a memory access failure at address gpa.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GuestMemoryBackingError
impl !RefUnwindSafe for GuestMemoryBackingError
impl Send for GuestMemoryBackingError
impl Sync for GuestMemoryBackingError
impl Unpin for GuestMemoryBackingError
impl UnsafeUnpin for GuestMemoryBackingError
impl !UnwindSafe for GuestMemoryBackingError
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