#[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 for ObjectMemoryFaultInfo
impl PartialEq for ObjectMemoryFaultInfo
source§impl PartialOrd for ObjectMemoryFaultInfo
impl PartialOrd for ObjectMemoryFaultInfo
impl Copy for ObjectMemoryFaultInfo
impl Eq for ObjectMemoryFaultInfo
impl StructuralPartialEq for ObjectMemoryFaultInfo
Auto Trait Implementations§
impl Freeze for ObjectMemoryFaultInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.