pub struct Cache {
pub level: u8,
pub cache_type: CacheType,
pub cpus: Vec<u32>,
pub size: u32,
pub associativity: Option<u32>,
pub line_size: u32,
}
Expand description
A memory cache.
Fields§
§level: u8
The cache level, 1 being closest to the CPU.
cache_type: CacheType
The cache type.
cpus: Vec<u32>
The CPUs that share this cache.
size: u32
The cache size in bytes.
associativity: Option<u32>
The cache associativity. /// If None
, this cache is fully associative.
line_size: u32
The cache line size in bytes.
Trait Implementations§
Source§impl Ord for Cache
impl Ord for Cache
Source§impl PartialOrd for Cache
impl PartialOrd for Cache
impl Eq for Cache
impl StructuralPartialEq for Cache
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