MemoryDevice

Struct MemoryDevice 

Source
pub struct MemoryDevice {
Show 39 fields pub physical_memory_array_handle: Option<Handle>, pub memory_error_information_handle: Option<Handle>, pub total_width: Option<u16>, pub data_width: Option<u16>, pub size: Option<MemorySize>, pub form_factor: Option<MemoryFormFactorData>, pub device_set: Option<u8>, pub device_locator: Option<String>, pub bank_locator: Option<String>, pub memory_type: Option<MemoryDeviceTypeData>, pub type_detail: Option<MemoryTypeDetails>, pub speed: Option<MemorySpeed>, pub manufacturer: Option<String>, pub serial_number: Option<String>, pub asset_tag: Option<String>, pub part_number: Option<String>, pub attributes: Option<u8>, pub extended_size: Option<MemorySizeExtended>, pub configured_memory_speed: Option<MemorySpeed>, pub minimum_voltage: Option<u16>, pub maximum_voltage: Option<u16>, pub configured_voltage: Option<u16>, pub memory_technology: Option<MemoryDeviceTechnologyData>, pub memory_operating_mode_capability: Option<MemoryOperatingModeCapabilities>, pub firmware_version: Option<String>, pub module_manufacturer_id: 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<MemoryIndicatedSize>, pub volatile_size: Option<MemoryIndicatedSize>, pub cache_size: Option<MemoryIndicatedSize>, pub logical_size: Option<MemoryIndicatedSize>, pub extended_speed: Option<MemorySpeedExtended>, pub extended_configured_speed: Option<MemorySpeedExtended>, pub pmic0_manufacturer_id: Option<u16>, pub pmic0_revision_number: Option<u16>, pub rcd_manufacturer_id: Option<u16>, pub rcd_revision_number: Option<u16>,
}
Expand description

Information about single memory device

Fields§

§physical_memory_array_handle: Option<Handle>

Handle or instance number, associated with the physical memory array to which this device belongs

§memory_error_information_handle: Option<Handle>

Handle or instance number, associated with any error that was previously detected for the device. If the system does not provide the error information structure, the field containes FFFEH

§total_width: Option<u16>

Total width, in bits, of this memory device, including any check or error-correction bits

§data_width: Option<u16>

Data width, in bits, of this memory device

§size: Option<MemorySize>

Size of memory device

§form_factor: Option<MemoryFormFactorData>

Form factor for this memory device

§device_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 A value of 0 indicates that the device is not part of a set; a value of FFh indicates that the attribute is unknown

§device_locator: Option<String>

Physically-labeled socket or board position where the memory device is located

§bank_locator: Option<String>

Physically-labeled bank where the memory device is located

§memory_type: Option<MemoryDeviceTypeData>

Type of memory used in this device

§type_detail: Option<MemoryTypeDetails>

Additional detail on the memory device type

§speed: Option<MemorySpeed>

The maximum capable speed of the device (MT/s)

§manufacturer: Option<String>

Manufacturer of this memory device

§serial_number: Option<String>

Serial number of this memory device

§asset_tag: Option<String>

Asset tag of this memory device

§part_number: Option<String>

Part number of this memory device

§attributes: Option<u8>

Bits 7-4: reserved Bits 3-0: rank Value=0 for unknown rank information

§extended_size: Option<MemorySizeExtended>

Extended suze of the memory device in MB

§configured_memory_speed: Option<MemorySpeed>

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<MemoryDeviceTechnologyData>

Memory technology type for this memory device

§memory_operating_mode_capability: Option<MemoryOperatingModeCapabilities>

The operating modes supported by this memory device

§firmware_version: Option<String>

Firmware version of this memory device

§module_manufacturer_id: Option<u16>

Two-byte module manufacturer ID found in the SPD of this memory device; LSB first

§module_product_id: Option<u16>

Two-byte module product id found in the SPD of this memory device; LSB first

§memory_subsystem_controller_manufacturer_id: Option<u16>

Two-byte memory subsystem controller manufacturer ID found in the SPD of this memory device; LSB first

§memory_subsystem_controller_product_id: Option<u16>

Two-byte memory subsystem controller product ID found in the SPD of this memory device; LSB first

§non_volatile_size: Option<MemoryIndicatedSize>

Size of the Non-volatile portion of the memory device in Bytes, if any

§volatile_size: Option<MemoryIndicatedSize>

Size of the Volatile portion of the memory device in Bytes, if any

§cache_size: Option<MemoryIndicatedSize>

Size of the Cache portion of the memory device in Bytes, if any

§logical_size: Option<MemoryIndicatedSize>

Size of the Logical memory device in Bytes

§extended_speed: Option<MemorySpeedExtended>

Extended speed of the memory device (complements the Speed field at offset 15h). Identifies the maximum capable speed of the device, in MT/s

§extended_configured_speed: Option<MemorySpeedExtended>

Extended configured memory speed of the memory device (complements the configure_memory_speed field at offset 20h). Identifies the configured speed of the memory device, in MT/s

§pmic0_manufacturer_id: Option<u16>

Two-byte PMIC0 manufacturer ID found in the SPD of this memory device; LSB first

§pmic0_revision_number: Option<u16>

PMIC 0 Revision Number found in the SPD of this memory device

§rcd_manufacturer_id: Option<u16>

Two-byte RCD manufacturer ID found in the SPD of this memory device; LSB first

§rcd_revision_number: Option<u16>

RCD 0 Revision Number found in the SPD of this memory device

Trait Implementations§

Source§

impl Debug for MemoryDevice

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> From<SMBiosMemoryDevice<'a>> for MemoryDevice

Source§

fn from(value: SMBiosMemoryDevice<'_>) -> Self

Converts to this type from the input type.
Source§

impl Serialize for MemoryDevice

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl ToJson for MemoryDevice

Source§

fn to_json(&self) -> Result<String>
where Self: Serialize,

Convert object data to machine-readable JSON format (without unnecessary indentation and newline transitions)
Source§

fn to_json_pretty(&self) -> Result<String>
where Self: Serialize,

Convert object data to human-readable JSON format (“pretty”; with additional newline transitions and indentation)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more