pub enum MemoryResidency {
Measured {
resident_pages: usize,
total_pages: usize,
},
Unsupported,
}Expand description
An observation of which pages in one mapped byte range are currently resident.
This is intentionally an observation rather than an eviction or a residency promise: the OS owns page-cache policy, so callers use it to record an access-class measurement for OQ-18, not to turn a performance hint into a correctness condition.
Variants§
Measured
mincore counted resident pages in the requested range.
Fields
Unsupported
This build deliberately has no native residency-query implementation.
Trait Implementations§
Source§impl Clone for MemoryResidency
impl Clone for MemoryResidency
Source§fn clone(&self) -> MemoryResidency
fn clone(&self) -> MemoryResidency
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MemoryResidency
Source§impl Debug for MemoryResidency
impl Debug for MemoryResidency
impl Eq for MemoryResidency
Source§impl PartialEq for MemoryResidency
impl PartialEq for MemoryResidency
impl StructuralPartialEq for MemoryResidency
Auto Trait Implementations§
impl Freeze for MemoryResidency
impl RefUnwindSafe for MemoryResidency
impl Send for MemoryResidency
impl Sync for MemoryResidency
impl Unpin for MemoryResidency
impl UnsafeUnpin for MemoryResidency
impl UnwindSafe for MemoryResidency
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