#[repr(i32)]pub enum MemoryError {
InvalidInstance = -1,
OutOfBounds = -2,
}Expand description
Errors that can be emitted when accessing a virtualization instance’s memory.
Variants§
InvalidInstance = -1
The supplied instance_id was invalid or the instance was destroyed.
OutOfBounds = -2
The memory region specified is not accessible.
Trait Implementations§
Source§impl Debug for MemoryError
impl Debug for MemoryError
impl Eq for MemoryError
Source§impl From<MemoryError> for i64
impl From<MemoryError> for i64
Source§fn from(error: MemoryError) -> Self
fn from(error: MemoryError) -> Self
Converts to this type from the input type.
Source§impl From<MemoryError> for i32
impl From<MemoryError> for i32
Source§fn from(enum_value: MemoryError) -> Self
fn from(enum_value: MemoryError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MemoryError
impl PartialEq for MemoryError
Source§fn eq(&self, other: &MemoryError) -> bool
fn eq(&self, other: &MemoryError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MemoryError
Source§impl TryFrom<i32> for MemoryError
impl TryFrom<i32> for MemoryError
Source§type Error = TryFromPrimitiveError<MemoryError>
type Error = TryFromPrimitiveError<MemoryError>
The type returned in the event of a conversion error.
Source§impl TryFrom<i64> for MemoryError
impl TryFrom<i64> for MemoryError
Source§impl TryFromPrimitive for MemoryError
impl TryFromPrimitive for MemoryError
const NAME: &'static str = "MemoryError"
type Primitive = i32
type Error = TryFromPrimitiveError<MemoryError>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for MemoryError
impl RefUnwindSafe for MemoryError
impl Send for MemoryError
impl Sync for MemoryError
impl Unpin for MemoryError
impl UnsafeUnpin for MemoryError
impl UnwindSafe for MemoryError
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