ArchFunctionality

Trait ArchFunctionality 

Source
pub trait ArchFunctionality {
    // Required methods
    fn cpu_count() -> u64;
    fn perf_frequency() -> u64;

    // Provided methods
    fn cpu_count_start() -> u64 { ... }
    fn cpu_count_end() -> u64 { ... }
}

Required Methods§

Source

fn cpu_count() -> u64

Value of the counter.

Source

fn perf_frequency() -> u64

Value in Hz of how often the counter increment.

Provided Methods§

Source

fn cpu_count_start() -> u64

Value the performance counter starts with when it rolls over.

Source

fn cpu_count_end() -> u64

Value that the performance counter ends with before it rolls over.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§