pub struct CpuCacheLevelInfo {
pub level: usize,
pub cache_type: CacheType,
pub size_kb: usize,
pub number_of_sets: usize,
pub ways_of_associativity: usize,
pub fully_associative: Option<bool>,
pub share_id_shift: Option<usize>,
}Expand description
Represents a single cache.
Fields§
§level: usize§cache_type: CacheType§size_kb: usizeThe size, in KiB, of the cache available to each processor. In the case of the last-level cache, however, this field might report the aggregate size of all such caches on the package.
number_of_sets: usizeThe number of sets in the cache available to each processor. In the case of the last-level cache, however, this field might report the aggregate number of sets across all such caches in the package. Indeterminate if zero.
ways_of_associativity: usizeIndeterminate if zero.
fully_associative: Option<bool>Indeterminate if None.
The number of bits to shift an APIC ID to get the associated “share ID”: processors with coinciding share IDs share this cache. If None, then it is indeterminate what the cache’s shift is.
Trait Implementations§
Source§impl Clone for CpuCacheLevelInfo
impl Clone for CpuCacheLevelInfo
Source§fn clone(&self) -> CpuCacheLevelInfo
fn clone(&self) -> CpuCacheLevelInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CpuCacheLevelInfo
Source§impl Debug for CpuCacheLevelInfo
impl Debug for CpuCacheLevelInfo
Source§impl Default for CpuCacheLevelInfo
impl Default for CpuCacheLevelInfo
impl Eq for CpuCacheLevelInfo
Source§impl PartialEq for CpuCacheLevelInfo
impl PartialEq for CpuCacheLevelInfo
impl StructuralPartialEq for CpuCacheLevelInfo
Auto Trait Implementations§
impl Freeze for CpuCacheLevelInfo
impl RefUnwindSafe for CpuCacheLevelInfo
impl Send for CpuCacheLevelInfo
impl Sync for CpuCacheLevelInfo
impl Unpin for CpuCacheLevelInfo
impl UnsafeUnpin for CpuCacheLevelInfo
impl UnwindSafe for CpuCacheLevelInfo
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)