Struct smbioslib::SMBiosPhysicalMemoryArray
source · [−]pub struct SMBiosPhysicalMemoryArray<'a> { /* private fields */ }
Expand description
Physical Memory Array (Type 16)
This structure describes a collection of memory devices that operate together to form a memory address space.
Compliant with: DMTF SMBIOS Reference Specification 3.4.0 (DSP0134) Document Date: 2020-07-17
Implementations
sourceimpl<'a> SMBiosPhysicalMemoryArray<'a>
impl<'a> SMBiosPhysicalMemoryArray<'a>
sourcepub fn location(&self) -> Option<MemoryArrayLocationData>
pub fn location(&self) -> Option<MemoryArrayLocationData>
Physical location of the Memory Array, whether on the system board or an add-in board
sourcepub fn usage(&self) -> Option<MemoryArrayUseData>
pub fn usage(&self) -> Option<MemoryArrayUseData>
Function for which the array is used
sourcepub fn memory_error_correction(&self) -> Option<MemoryArrayErrorCorrectionData>
pub fn memory_error_correction(&self) -> Option<MemoryArrayErrorCorrectionData>
Primary hardware error correction or detection method supported by this memory array
sourcepub fn maximum_capacity(&self) -> Option<MaximumMemoryCapacity>
pub fn maximum_capacity(&self) -> Option<MaximumMemoryCapacity>
Maximum memory capacity, in kilobytes, for this array
If the capacity is not represented in this field, then the ‘extended_maximum_capacity’ field should be used.
Values 2 TB (8000 0000h) or greater must be represented in the Extended Maximum Capacity field.
sourcepub fn memory_error_information_handle(&self) -> Option<Handle>
pub fn memory_error_information_handle(&self) -> Option<Handle>
Handle, or instance number, associated with any error that was previously detected for the array
If the system does not provide the error information structure, the field contains FFFEh; otherwise, the field contains either FFFFh (if no error was detected) or the handle of the errorinformation structure.
sourcepub fn number_of_memory_devices(&self) -> Option<u16>
pub fn number_of_memory_devices(&self) -> Option<u16>
Number of slots or sockets available for super::SMBiosMemoryDevices in this array
This value represents the number of super::SMBiosMemoryDevice structures that compose this Memory Array. Each super::SMBiosMemoryDevice has a reference to the “owning” Memory Array.
sourcepub fn extended_maximum_capacity(&self) -> Option<u64>
pub fn extended_maximum_capacity(&self) -> Option<u64>
Maximum memory capacity, in bytes, for this array
This field is only valid when the Maximum Capacity field contains 8000 0000h. When Maximum Capacity contains a value that is not 8000 0000h, Extended Maximum Capacity must contain zeros.
Trait Implementations
sourceimpl Debug for SMBiosPhysicalMemoryArray<'_>
impl Debug for SMBiosPhysicalMemoryArray<'_>
sourceimpl<'a> SMBiosStruct<'a> for SMBiosPhysicalMemoryArray<'a>
impl<'a> SMBiosStruct<'a> for SMBiosPhysicalMemoryArray<'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 SMBiosPhysicalMemoryArray<'_>
impl Serialize for SMBiosPhysicalMemoryArray<'_>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SMBiosPhysicalMemoryArray<'a>
impl<'a> Send for SMBiosPhysicalMemoryArray<'a>
impl<'a> Sync for SMBiosPhysicalMemoryArray<'a>
impl<'a> Unpin for SMBiosPhysicalMemoryArray<'a>
impl<'a> UnwindSafe for SMBiosPhysicalMemoryArray<'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