Struct smbioslib::SMBiosCacheInformation
source · [−]pub struct SMBiosCacheInformation<'a> { /* private fields */ }
Expand description
Cache Information (Type 7)
This structure defines the attributes of CPU cache device in the system. One structure is specified for each such device, whether the device is internal to or external to the CPU module. Cache modules can be associated with a processor structure in one or two ways depending on the SMBIOS version
Compliant with: DMTF SMBIOS Reference Specification 3.4.0 (DSP0134) Document Date: 2020-07-17
Implementations
sourceimpl<'a> SMBiosCacheInformation<'a>
impl<'a> SMBiosCacheInformation<'a>
sourcepub fn socket_designation(&self) -> Option<String>
pub fn socket_designation(&self) -> Option<String>
String number for reference designation
sourcepub fn cache_configuration(&self) -> Option<CacheConfiguaration>
pub fn cache_configuration(&self) -> Option<CacheConfiguaration>
Bit fields describing the cache configuration
sourcepub fn maximum_cache_size(&self) -> Option<CacheMemorySize>
pub fn maximum_cache_size(&self) -> Option<CacheMemorySize>
Maximum size that can be installed
sourcepub fn installed_size(&self) -> Option<CacheMemorySize>
pub fn installed_size(&self) -> Option<CacheMemorySize>
Same format as Max Cache Size field; set to 0 if no cache is installed
sourcepub fn supported_sram_type(&self) -> Option<SramTypes>
pub fn supported_sram_type(&self) -> Option<SramTypes>
Supported SRAM type
sourcepub fn current_sram_type(&self) -> Option<SramTypes>
pub fn current_sram_type(&self) -> Option<SramTypes>
Current SRAM type
sourcepub fn cache_speed(&self) -> Option<u8>
pub fn cache_speed(&self) -> Option<u8>
Cache module speed, in nanoseconds. The value is 0 if the speed is unknown.
sourcepub fn error_correction_type(&self) -> Option<ErrorCorrectionTypeData>
pub fn error_correction_type(&self) -> Option<ErrorCorrectionTypeData>
Error-correction scheme supported by this cache component
sourcepub fn system_cache_type(&self) -> Option<SystemCacheTypeData>
pub fn system_cache_type(&self) -> Option<SystemCacheTypeData>
Logical type of cache
sourcepub fn associativity(&self) -> Option<CacheAssociativityData>
pub fn associativity(&self) -> Option<CacheAssociativityData>
Associativity of the cache
sourcepub fn maximum_cache_size_2(&self) -> Option<CacheMemorySize>
pub fn maximum_cache_size_2(&self) -> Option<CacheMemorySize>
Maximum cache size
sourcepub fn installed_cache_size_2(&self) -> Option<CacheMemorySize>
pub fn installed_cache_size_2(&self) -> Option<CacheMemorySize>
Installed cache size
Trait Implementations
sourceimpl Debug for SMBiosCacheInformation<'_>
impl Debug for SMBiosCacheInformation<'_>
sourceimpl<'a> SMBiosStruct<'a> for SMBiosCacheInformation<'a>
impl<'a> SMBiosStruct<'a> for SMBiosCacheInformation<'a>
sourceconst STRUCT_TYPE: u8
const STRUCT_TYPE: u8
The SMBIOS structure type Read more
sourcefn new(parts: &'a UndefinedStruct) -> Self
fn new(parts: &'a UndefinedStruct) -> Self
Creates a new instance of the implementing SMBIOS type
sourcefn parts(&self) -> &'a UndefinedStruct
fn parts(&self) -> &'a UndefinedStruct
Contains the standard parts/sections of the implementing SMBIOS type.
sourceimpl Serialize for SMBiosCacheInformation<'_>
impl Serialize for SMBiosCacheInformation<'_>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SMBiosCacheInformation<'a>
impl<'a> Send for SMBiosCacheInformation<'a>
impl<'a> Sync for SMBiosCacheInformation<'a>
impl<'a> Unpin for SMBiosCacheInformation<'a>
impl<'a> UnwindSafe for SMBiosCacheInformation<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more