pub struct MemoryArray {
pub location: Option<MemoryArrayLocationData>,
pub usage: Option<MemoryArrayUseData>,
pub memory_error_correction: Option<MemoryArrayErrorCorrectionData>,
pub maximum_capacity: Option<MaximumMemoryCapacity>,
pub memory_error_information_handle: Option<Handle>,
pub number_of_memory_devices: Option<u16>,
pub extended_maximum_capacity: Option<u64>,
}Expand description
Collection of memory devices that operate together to form a memory address space
Fields§
§location: Option<MemoryArrayLocationData>Physical location of the Memory Array, whether on the system board or an add-in board
usage: Option<MemoryArrayUseData>Which the array is used
memory_error_correction: Option<MemoryArrayErrorCorrectionData>Primary hardware error correction or detection method supported by this memory array
maximum_capacity: Option<MaximumMemoryCapacity>Maximum memory capacity, in kbytes, for this array
memory_error_information_handle: Option<Handle>Handle, or instance number, associated with any error that was previously detected for the array
number_of_memory_devices: Option<u16>Number of slots/sockets available for memory devices in this array
extended_maximum_capacity: Option<u64>Maximum memory capacity, in bytes, for this array. This field is only valid when the Maximum Capacity field contains 8000 0000h.
Implementations§
Source§impl MemoryArray
impl MemoryArray
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Creates a new instance of Self
It is usually not required, since an instance of this
structure will be created using the method
Self::new_from_table(table: &SMBiosData) in the constructor
DMITable::new().
pub fn new_from_table(table: &SMBiosData) -> Result<Self>
Trait Implementations§
Source§impl Debug for MemoryArray
impl Debug for MemoryArray
Source§impl Serialize for MemoryArray
impl Serialize for MemoryArray
Auto Trait Implementations§
impl Freeze for MemoryArray
impl RefUnwindSafe for MemoryArray
impl Send for MemoryArray
impl Sync for MemoryArray
impl Unpin for MemoryArray
impl UnwindSafe for MemoryArray
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more