#[non_exhaustive]pub enum CacheKind {
Unified,
Instruction,
Data,
Trace,
Other(i32),
}Expand description
What a CacheRelation holds.
With the serde feature, a well-known variant serializes as its lowercase
name ("unified", "instruction", "data", "trace"); Other serializes
as {"other": <raw value>}, so an unrecognised PROCESSOR_CACHE_TYPE
still round-trips rather than losing its value.
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.
Unified
A unified instruction-and-data cache.
Instruction
An instruction-only cache.
Data
A data-only cache.
Trace
A trace cache.
Other(i32)
A cache type this crate does not have a name for; carries Windows’s
raw PROCESSOR_CACHE_TYPE value rather than losing it.
Trait Implementations§
impl Copy for CacheKind
Source§impl<'de> Deserialize<'de> for CacheKind
impl<'de> Deserialize<'de> for CacheKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CacheKind
impl StructuralPartialEq for CacheKind
Auto Trait Implementations§
impl Freeze for CacheKind
impl RefUnwindSafe for CacheKind
impl Send for CacheKind
impl Sync for CacheKind
impl Unpin for CacheKind
impl UnsafeUnpin for CacheKind
impl UnwindSafe for CacheKind
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