#[non_exhaustive]pub enum GuestMemoryErrorKind {
Other,
OutOfRange,
VtlProtected,
NotPrivate,
NotShared,
}
Expand description
The kind of memory access error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Other
An error that does not fit any other category.
OutOfRange
The address is outside the valid range of the memory.
VtlProtected
The memory has been protected by a higher virtual trust level.
NotPrivate
The memory is shared but was accessed via a private address.
The memory is private but was accessed via a shared address.
Trait Implementations§
Source§impl Clone for GuestMemoryErrorKind
impl Clone for GuestMemoryErrorKind
Source§fn clone(&self) -> GuestMemoryErrorKind
fn clone(&self) -> GuestMemoryErrorKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GuestMemoryErrorKind
impl Debug for GuestMemoryErrorKind
Source§impl PartialEq for GuestMemoryErrorKind
impl PartialEq for GuestMemoryErrorKind
impl Copy for GuestMemoryErrorKind
impl Eq for GuestMemoryErrorKind
impl StructuralPartialEq for GuestMemoryErrorKind
Auto Trait Implementations§
impl Freeze for GuestMemoryErrorKind
impl RefUnwindSafe for GuestMemoryErrorKind
impl Send for GuestMemoryErrorKind
impl Sync for GuestMemoryErrorKind
impl Unpin for GuestMemoryErrorKind
impl UnwindSafe for GuestMemoryErrorKind
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