#[repr(transparent)]pub struct CacheResult(pub u8);
Expand description
What sort of cache result we’re interested in observing.
ACCESS
counts the total number of operations performed on the cache,
whereas MISS
counts only those requests that the cache could not satisfy.
Treating MISS
as a fraction of ACCESS
gives you the cache’s miss rate.
This is used used in the Cache
type as part of the identification of a
cache event. Each variant here corresponds to a particular
PERF_COUNT_HW_CACHE_RESULT_...
constant supported by the
perf_event_open
system call.
Tuple Fields§
§0: u8
Implementations§
Trait Implementations§
Source§impl Clone for CacheResult
impl Clone for CacheResult
Source§fn clone(&self) -> CacheResult
fn clone(&self) -> CacheResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CacheResult
impl Debug for CacheResult
Source§impl From<CacheResult> for u8
impl From<CacheResult> for u8
Source§fn from(value: CacheResult) -> Self
fn from(value: CacheResult) -> Self
Converts to this type from the input type.
Source§impl From<u8> for CacheResult
impl From<u8> for CacheResult
Source§impl Hash for CacheResult
impl Hash for CacheResult
Source§impl PartialEq for CacheResult
impl PartialEq for CacheResult
impl Copy for CacheResult
impl Eq for CacheResult
impl StructuralPartialEq for CacheResult
Auto Trait Implementations§
impl Freeze for CacheResult
impl RefUnwindSafe for CacheResult
impl Send for CacheResult
impl Sync for CacheResult
impl Unpin for CacheResult
impl UnwindSafe for CacheResult
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