Struct dmidecode::structures::memory_device::MemoryDevice
source · [−]pub struct MemoryDevice<'buffer> {Show 36 fields
pub handle: u16,
pub physical_memory_handle: u16,
pub memory_error_handle: Option<u16>,
pub total_width: Option<u16>,
pub data_width: Option<u16>,
pub size: Option<u16>,
pub form_factor: FormFactor,
pub device_set: Option<u8>,
pub device_locator: &'buffer str,
pub bank_locator: &'buffer str,
pub memory_type: Type,
pub type_detail: Detail,
pub speed: Option<u16>,
pub manufacturer: &'buffer str,
pub serial: &'buffer str,
pub asset_tag: &'buffer str,
pub part_number: &'buffer str,
pub attributes: u8,
pub extended_size: u32,
pub configured_memory_speed: Option<u16>,
pub minimum_voltage: Option<u16>,
pub maximum_voltage: Option<u16>,
pub configured_voltage: Option<u16>,
pub memory_technology: Option<MemoryTechnology>,
pub operating_mode_capability: Option<OperatingModes>,
pub firmware_version: Option<&'buffer str>,
pub module_manufacturer: Option<u16>,
pub module_product_id: Option<u16>,
pub memory_subsystem_controller_manufacturer_id: Option<u16>,
pub memory_subsystem_controller_product_id: Option<u16>,
pub non_volatile_size: Option<u64>,
pub volatile_size: Option<u64>,
pub cache_size: Option<u64>,
pub logical_size: Option<u64>,
pub extended_speed: Option<u32>,
pub extended_configured_memory_speed: Option<u32>,
}Expand description
The Memory Device table defined in the SMBIOS specification.
Optional fields will only be set if the version of the parsed SMBIOS table is high enough to have defined the field.
Fields
handle: u16physical_memory_handle: u16memory_error_handle: Option<u16>total_width: Option<u16>Total width, in bits, of this memory device, including any check or error-correction bits. If there are no error-correction bits, this value should be equal to Data Width
data_width: Option<u16>Data width, in bits, of this memory device. A Data Width of 0 and a Total Width of 8 indicates that the device is being used solely to provide 8 error-correction bits
size: Option<u16>Size of the memory device. If the size is 32GB-1MB or greater, the field value is 7FFFh and the actual size is stored in the extended_size field.
form_factor: FormFactordevice_set: Option<u8>Identifies when the Memory Device is one of a set of Memory Devices that must be populated with all devices of the same type and size, and the set to which this device belongs
device_locator: &'buffer strIdentifies the physically-labeled socket or board position where the memory device is located
bank_locator: &'buffer strIdentifies the physically labeled bank where the memory device is located
memory_type: Typetype_detail: Detailspeed: Option<u16>Identifies the maximum capable speed of the device, in megatransfers per second (MT/s)
manufacturer: &'buffer strserial: &'buffer strasset_tag: &'buffer strpart_number: &'buffer strattributes: u8extended_size: u32Extended size of the memory device (complements the Size field)
configured_memory_speed: Option<u16>Identifies the configured speed of the memory device, in megatransfers per second (MT/s)
minimum_voltage: Option<u16>Minimum operating voltage for this device, in millivolts
maximum_voltage: Option<u16>Maximum operating voltage for this device, in millivolts
configured_voltage: Option<u16>Configured voltage for this device, in millivolts
memory_technology: Option<MemoryTechnology>Memory technology type for this memory device
operating_mode_capability: Option<OperatingModes>The operating modes supported by this memory device
firmware_version: Option<&'buffer str>module_manufacturer: Option<u16>The two-byte module manufacturer ID found in the SPD of this memory device; LSB first.
module_product_id: Option<u16>The two-byte module product ID found in the SPD of this memory device; LSB first
memory_subsystem_controller_manufacturer_id: Option<u16>The two-byte memory subsystem controller manufacturer ID found in the SPD of this memory device; LSB first
memory_subsystem_controller_product_id: Option<u16>The two-byte memory subsystem controller product ID found in the SPD of this memory device; LSB first
non_volatile_size: Option<u64>Size of the Non-volatile portion of the memory device in Bytes, if any
volatile_size: Option<u64>Size of the Volatile portion of the memory device in Bytes, if any
cache_size: Option<u64>Size of the Cache portion of the memory device in Bytes, if any.
logical_size: Option<u64>Size of the Logical memory device in Bytes
extended_speed: Option<u32>Identifies the maximum capable speed of the device, in megatransfers per second
extended_configured_memory_speed: Option<u32>Identifies the configured speed of the memory device, in megatransfers per second
Trait Implementations
sourceimpl<'buffer> Clone for MemoryDevice<'buffer>
impl<'buffer> Clone for MemoryDevice<'buffer>
sourcefn clone(&self) -> MemoryDevice<'buffer>
fn clone(&self) -> MemoryDevice<'buffer>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'buffer> Debug for MemoryDevice<'buffer>
impl<'buffer> Debug for MemoryDevice<'buffer>
sourceimpl<'buffer> Default for MemoryDevice<'buffer>
impl<'buffer> Default for MemoryDevice<'buffer>
sourcefn default() -> MemoryDevice<'buffer>
fn default() -> MemoryDevice<'buffer>
Returns the “default value” for a type. Read more
sourceimpl<'buffer> Hash for MemoryDevice<'buffer>
impl<'buffer> Hash for MemoryDevice<'buffer>
sourceimpl<'buffer> PartialEq<MemoryDevice<'buffer>> for MemoryDevice<'buffer>
impl<'buffer> PartialEq<MemoryDevice<'buffer>> for MemoryDevice<'buffer>
sourcefn eq(&self, other: &MemoryDevice<'buffer>) -> bool
fn eq(&self, other: &MemoryDevice<'buffer>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &MemoryDevice<'buffer>) -> bool
fn ne(&self, other: &MemoryDevice<'buffer>) -> bool
This method tests for !=.
impl<'buffer> Eq for MemoryDevice<'buffer>
impl<'buffer> StructuralEq for MemoryDevice<'buffer>
impl<'buffer> StructuralPartialEq for MemoryDevice<'buffer>
Auto Trait Implementations
impl<'buffer> RefUnwindSafe for MemoryDevice<'buffer>
impl<'buffer> Send for MemoryDevice<'buffer>
impl<'buffer> Sync for MemoryDevice<'buffer>
impl<'buffer> Unpin for MemoryDevice<'buffer>
impl<'buffer> UnwindSafe for MemoryDevice<'buffer>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more