pub struct CacheRelation {
pub level: u8,
pub associativity: u8,
pub line_size: u16,
pub cache_size: u32,
pub cache_type: CacheKind,
pub processors: ProcessorSet,
}Expand description
A cache level shared by a set of logical processors.
Fields§
§level: u8Cache level (1, 2, 3, …).
associativity: u8Associativity Windows reported, or 0xFF for fully associative.
line_size: u16Cache line size in bytes.
cache_size: u32Total cache size in bytes.
cache_type: CacheKindWhat the cache holds.
processors: ProcessorSetThe logical processors that share this cache.
Trait Implementations§
Source§impl Clone for CacheRelation
impl Clone for CacheRelation
Source§fn clone(&self) -> CacheRelation
fn clone(&self) -> CacheRelation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheRelation
impl Debug for CacheRelation
impl Eq for CacheRelation
Source§impl PartialEq for CacheRelation
impl PartialEq for CacheRelation
impl StructuralPartialEq for CacheRelation
Auto Trait Implementations§
impl Freeze for CacheRelation
impl RefUnwindSafe for CacheRelation
impl Send for CacheRelation
impl Sync for CacheRelation
impl Unpin for CacheRelation
impl UnsafeUnpin for CacheRelation
impl UnwindSafe for CacheRelation
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