Enum twizzler_abi::upcall::ObjectMemoryError
source · #[repr(u8)]pub enum ObjectMemoryError {
NullPageAccess,
OutOfBounds(usize),
}
Expand description
Kinds of object memory errors.
Variants§
NullPageAccess
Tried to access an object’s null page
OutOfBounds(usize)
Tried to access outside of an object
Trait Implementations§
source§impl Clone for ObjectMemoryError
impl Clone for ObjectMemoryError
source§fn clone(&self) -> ObjectMemoryError
fn clone(&self) -> ObjectMemoryError
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 ObjectMemoryError
impl Debug for ObjectMemoryError
source§impl Ord for ObjectMemoryError
impl Ord for ObjectMemoryError
source§fn cmp(&self, other: &ObjectMemoryError) -> Ordering
fn cmp(&self, other: &ObjectMemoryError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ObjectMemoryError> for ObjectMemoryError
impl PartialEq<ObjectMemoryError> for ObjectMemoryError
source§fn eq(&self, other: &ObjectMemoryError) -> bool
fn eq(&self, other: &ObjectMemoryError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ObjectMemoryError> for ObjectMemoryError
impl PartialOrd<ObjectMemoryError> for ObjectMemoryError
source§fn partial_cmp(&self, other: &ObjectMemoryError) -> Option<Ordering>
fn partial_cmp(&self, other: &ObjectMemoryError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ObjectMemoryError
impl Eq for ObjectMemoryError
impl StructuralEq for ObjectMemoryError
impl StructuralPartialEq for ObjectMemoryError
Auto Trait Implementations§
impl ObjSafe for ObjectMemoryError
impl RefUnwindSafe for ObjectMemoryError
impl Send for ObjectMemoryError
impl Sync for ObjectMemoryError
impl Unpin for ObjectMemoryError
impl UnwindSafe for ObjectMemoryError
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