#[repr(C)]pub struct Cache {
pub size: u32,
pub associativity: u32,
pub sets: u32,
pub partitions: u32,
pub line_size: u32,
pub flags: u32,
pub processor_start: u32,
pub processor_count: u32,
}
Fields§
§size: u32
Cache size in bytes
associativity: u32
Number of ways of associativity
sets: u32
Number of sets
partitions: u32
Number of partitions
line_size: u32
Line size in bytes
flags: u32
Binary characteristics of the cache (unified cache, inclusive cache, cache with complex indexing).
@see CPUINFO_CACHE_UNIFIED, CPUINFO_CACHE_INCLUSIVE, CPUINFO_CACHE_COMPLEX_INDEXING
processor_start: u32
Index of the first logical processor that shares this cache
processor_count: u32
Number of logical processors that share this cache
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cache
impl<'de> Deserialize<'de> for Cache
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
Auto Trait Implementations§
impl Freeze for Cache
impl RefUnwindSafe for Cache
impl Send for Cache
impl Sync for Cache
impl Unpin for Cache
impl UnwindSafe for Cache
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