#[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: u32Cache size in bytes
associativity: u32Number of ways of associativity
sets: u32Number of sets
partitions: u32Number of partitions
line_size: u32Line size in bytes
flags: u32Binary 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: u32Index of the first logical processor that shares this cache
processor_count: u32Number 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