#[repr(transparent)]pub struct CacheOp(pub u8);
Expand description
What sort of cache operation we would like to observe.
This is 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_OP_...
constant supported by the
perf_event_open
system call.
Tuple Fields§
§0: u8
Implementations§
Trait Implementations§
impl Copy for CacheOp
impl Eq for CacheOp
impl StructuralPartialEq for CacheOp
Auto Trait Implementations§
impl Freeze for CacheOp
impl RefUnwindSafe for CacheOp
impl Send for CacheOp
impl Sync for CacheOp
impl Unpin for CacheOp
impl UnwindSafe for CacheOp
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