pub trait CounterInterface {
// Required methods
fn counter_value(&self) -> u64;
fn frequency(&self) -> u32;
}Expand description
Interface for accessing common counter registers.
Required Methods§
Sourcefn counter_value(&self) -> u64
fn counter_value(&self) -> u64
Returns the up-counter value.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl CounterInterface for MmioCounter<'_>
impl CounterInterface for PhysicalCounter
Available on AArch64 or crate feature
fakes only.impl CounterInterface for VirtualCounter
Available on AArch64 or crate feature
fakes only.