Struct smbioslib::CacheConfiguaration
source · pub struct CacheConfiguaration {
pub raw: u16,
}
Expand description
Fields§
§raw: u16
Raw value
Implementations§
source§impl CacheConfiguaration
impl CacheConfiguaration
sourcepub fn cache_level(&self) -> u8
pub fn cache_level(&self) -> u8
Cache Level (1 through 8)
sourcepub fn cache_socketed(&self) -> bool
pub fn cache_socketed(&self) -> bool
Cache Socketed (e.g. Cache on a Stick)
true - socketed false - non-socketed
sourcepub fn location(&self) -> CacheLocation
pub fn location(&self) -> CacheLocation
Cache Location (relative to the CPU module)
sourcepub fn enabled_at_boot(&self) -> bool
pub fn enabled_at_boot(&self) -> bool
Cache Enabled (at boot time)
sourcepub fn operational_mode(&self) -> CacheOperationalMode
pub fn operational_mode(&self) -> CacheOperationalMode
Cache Operational Mode
Methods from Deref<Target = u16>§
pub const MIN: u16 = 0u16
pub const MAX: u16 = 65_535u16
pub const BITS: u32 = 16u32
Trait Implementations§
source§impl Debug for CacheConfiguaration
impl Debug for CacheConfiguaration
source§impl Deref for CacheConfiguaration
impl Deref for CacheConfiguaration
source§impl From<u16> for CacheConfiguaration
impl From<u16> for CacheConfiguaration
source§impl PartialEq<CacheConfiguaration> for CacheConfiguaration
impl PartialEq<CacheConfiguaration> for CacheConfiguaration
source§fn eq(&self, other: &CacheConfiguaration) -> bool
fn eq(&self, other: &CacheConfiguaration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CacheConfiguaration
impl Serialize for CacheConfiguaration
impl Eq for CacheConfiguaration
impl StructuralEq for CacheConfiguaration
impl StructuralPartialEq for CacheConfiguaration
Auto Trait Implementations§
impl RefUnwindSafe for CacheConfiguaration
impl Send for CacheConfiguaration
impl Sync for CacheConfiguaration
impl Unpin for CacheConfiguaration
impl UnwindSafe for CacheConfiguaration
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