#[non_exhaustive]pub enum HardwareEventId {
CpuCycles,
Instructions,
CacheReferences,
CacheMisses,
BranchInstructions,
BranchMisses,
BusCycles,
StalledCyclesFrontend,
StalledCyclesBackend,
RefCpuCycles,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CpuCycles
PERF_COUNT_HW_CPU_CYCLES
Instructions
PERF_COUNT_HW_INSTRUCTIONS
CacheReferences
PERF_COUNT_HW_CACHE_REFERENCES
CacheMisses
PERF_COUNT_HW_CACHE_MISSES
BranchInstructions
PERF_COUNT_HW_BRANCH_INSTRUCTIONS
BranchMisses
PERF_COUNT_HW_BRANCH_MISSES
BusCycles
PERF_COUNT_HW_BUS_CYCLES
StalledCyclesFrontend
PERF_COUNT_HW_STALLED_CYCLES_FRONTEND
StalledCyclesBackend
PERF_COUNT_HW_STALLED_CYCLES_BACKEND
RefCpuCycles
PERF_COUNT_HW_REF_CPU_CYCLES
Implementations§
Trait Implementations§
Source§impl Clone for HardwareEventId
impl Clone for HardwareEventId
Source§fn clone(&self) -> HardwareEventId
fn clone(&self) -> HardwareEventId
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HardwareEventId
impl Debug for HardwareEventId
impl Copy for HardwareEventId
Auto Trait Implementations§
impl Freeze for HardwareEventId
impl RefUnwindSafe for HardwareEventId
impl Send for HardwareEventId
impl Sync for HardwareEventId
impl Unpin for HardwareEventId
impl UnwindSafe for HardwareEventId
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