Skip to main content

PageFaultProvider

Trait PageFaultProvider 

Source
pub trait PageFaultProvider:
    Clone
    + Send
    + Sync
    + 'static {
    // Required methods
    fn get_refault_count(&self) -> u64;
    fn get_fault_count(&self) -> u64;
}

Required Methods§

Source

fn get_refault_count(&self) -> u64

Returns the current number of page refaults of the system, since its start, i.e. pages resupplied after eviction.

Source

fn get_fault_count(&self) -> u64

Returns the total number of major page faults of the system, since its start, i.e. pages supplied by user pagers including readahead.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§