Struct twizzler_abi::upcall::ObjectMemoryFaultInfo
source · #[repr(C)]pub struct ObjectMemoryFaultInfo {
pub object_id: ObjID,
pub error: ObjectMemoryError,
pub access: MemoryAccessKind,
pub addr: usize,
}
Expand description
Information about a memory access error to an object.
Fields§
§object_id: ObjID
Object ID of attempted access.
error: ObjectMemoryError
The kind of error.
access: MemoryAccessKind
The kind of memory access that caused the error.
addr: usize
The virtual address at which the error occurred.
Implementations§
source§impl ObjectMemoryFaultInfo
impl ObjectMemoryFaultInfo
sourcepub fn new(
object_id: ObjID,
error: ObjectMemoryError,
access: MemoryAccessKind,
addr: usize
) -> Self
pub fn new( object_id: ObjID, error: ObjectMemoryError, access: MemoryAccessKind, addr: usize ) -> Self
Construct a new upcall info for memory fault.
Trait Implementations§
source§impl Clone for ObjectMemoryFaultInfo
impl Clone for ObjectMemoryFaultInfo
source§fn clone(&self) -> ObjectMemoryFaultInfo
fn clone(&self) -> ObjectMemoryFaultInfo
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 ObjectMemoryFaultInfo
impl Debug for ObjectMemoryFaultInfo
source§impl Ord for ObjectMemoryFaultInfo
impl Ord for ObjectMemoryFaultInfo
source§fn cmp(&self, other: &ObjectMemoryFaultInfo) -> Ordering
fn cmp(&self, other: &ObjectMemoryFaultInfo) -> 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<ObjectMemoryFaultInfo> for ObjectMemoryFaultInfo
impl PartialEq<ObjectMemoryFaultInfo> for ObjectMemoryFaultInfo
source§fn eq(&self, other: &ObjectMemoryFaultInfo) -> bool
fn eq(&self, other: &ObjectMemoryFaultInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ObjectMemoryFaultInfo> for ObjectMemoryFaultInfo
impl PartialOrd<ObjectMemoryFaultInfo> for ObjectMemoryFaultInfo
source§fn partial_cmp(&self, other: &ObjectMemoryFaultInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &ObjectMemoryFaultInfo) -> 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 ObjectMemoryFaultInfo
impl Eq for ObjectMemoryFaultInfo
impl StructuralEq for ObjectMemoryFaultInfo
impl StructuralPartialEq for ObjectMemoryFaultInfo
Auto Trait Implementations§
impl ObjSafe for ObjectMemoryFaultInfo
impl RefUnwindSafe for ObjectMemoryFaultInfo
impl Send for ObjectMemoryFaultInfo
impl Sync for ObjectMemoryFaultInfo
impl Unpin for ObjectMemoryFaultInfo
impl UnwindSafe for ObjectMemoryFaultInfo
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