pub enum DefinedStruct<'a> {
Show 50 variants Information(SMBiosInformation<'a>), SystemInformation(SMBiosSystemInformation<'a>), BaseBoardInformation(SMBiosBaseboardInformation<'a>), SystemChassisInformation(SMBiosSystemChassisInformation<'a>), ProcessorInformation(SMBiosProcessorInformation<'a>), MemoryControllerInformation(SMBiosMemoryControllerInformation<'a>), MemoryModuleInformation(SMBiosMemoryModuleInformation<'a>), CacheInformation(SMBiosCacheInformation<'a>), PortConnectorInformation(SMBiosPortConnectorInformation<'a>), SystemSlot(SMBiosSystemSlot<'a>), OnBoardDeviceInformation(SMBiosOnBoardDeviceInformation<'a>), OemStrings(SMBiosOemStrings<'a>), SystemConfigurationOptions(SMBiosSystemConfigurationOptions<'a>), LanguageInformation(SMBiosBiosLanguageInformation<'a>), GroupAssociations(SMBiosGroupAssociations<'a>), EventLog(SMBiosSystemEventLog<'a>), PhysicalMemoryArray(SMBiosPhysicalMemoryArray<'a>), MemoryDevice(SMBiosMemoryDevice<'a>), MemoryErrorInformation32Bit(SMBiosMemoryErrorInformation32<'a>), MemoryArrayMappedAddress(SMBiosMemoryArrayMappedAddress<'a>), MemoryDeviceMappedAddress(SMBiosMemoryDeviceMappedAddress<'a>), BuiltInPointingDevice(SMBiosBuiltInPointingDevice<'a>), PortableBattery(SMBiosPortableBattery<'a>), SystemReset(SMBiosSystemReset<'a>), HardwareSecurity(SMBiosHardwareSecurity<'a>), SystemPowerControls(SMBiosSystemPowerControls<'a>), VoltageProbe(SMBiosVoltageProbe<'a>), CoolingDevice(SMBiosCoolingDevice<'a>), TemperatureProbe(SMBiosTemperatureProbe<'a>), ElectricalCurrentProbe(SMBiosElectricalCurrentProbe<'a>), OutOfBandRemoteAccess(SMBiosOutOfBandRemoteAccess<'a>), BisEntryPoint(SMBiosBisEntryPoint<'a>), SystemBootInformation(SMBiosSystemBootInformation<'a>), MemoryErrorInformation64Bit(SMBiosMemoryErrorInformation64<'a>), ManagementDevice(SMBiosManagementDevice<'a>), ManagementDeviceComponent(SMBiosManagementDeviceComponent<'a>), ManagementDeviceThresholdData(SMBiosManagementDeviceThresholdData<'a>), MemoryChannel(SMBiosMemoryChannel<'a>), IpmiDeviceInformation(SMBiosIpmiDeviceInformation<'a>), SystemPowerSupply(SMBiosSystemPowerSupply<'a>), AdditionalInformation(SMBiosAdditionalInformation<'a>), OnboardDevicesExtendedInformation(SMBiosOnboardDevicesExtendedInformation<'a>), ManagementControllerHostInterface(SMBiosManagementControllerHostInterface<'a>), TpmDevice(SMBiosTpmDevice<'a>), ProcessorAdditionalInformation(SMBiosProcessorAdditionalInformation<'a>), FirmwareInventoryInformation(SMBiosFirmwareInventoryInformation<'a>), StringProperty(SMBiosStringProperty<'a>), Inactive(SMBiosInactive<'a>), EndOfTable(SMBiosEndOfTable<'a>), Undefined(SMBiosUnknown<'a>),
}
Expand description

SMBIOS Standard Defined Structure

Represents one of the SMBIOS defined structures or, in the case of an OEM defined structure, as a generically defined Unknown variant

Variants§

§

Information(SMBiosInformation<'a>)

BIOS Information (Type 0)

§

SystemInformation(SMBiosSystemInformation<'a>)

System Information (Type 1)

§

BaseBoardInformation(SMBiosBaseboardInformation<'a>)

Baseboard (or Module) Information (Type 2)

§

SystemChassisInformation(SMBiosSystemChassisInformation<'a>)

System Enclosure or Chassis (Type 3)

§

ProcessorInformation(SMBiosProcessorInformation<'a>)

Processor Information (Type 4)

§

MemoryControllerInformation(SMBiosMemoryControllerInformation<'a>)

Memory Controller Information (Type 5, Obsolete)

§

MemoryModuleInformation(SMBiosMemoryModuleInformation<'a>)

Memory Module Information (Type 6, Obsolete)

§

CacheInformation(SMBiosCacheInformation<'a>)

Cache Informaiton (Type 7)

§

PortConnectorInformation(SMBiosPortConnectorInformation<'a>)

Port Connector Information (Type 8)

§

SystemSlot(SMBiosSystemSlot<'a>)

System Slot Information (Type 9)

§

OnBoardDeviceInformation(SMBiosOnBoardDeviceInformation<'a>)

On Board Devices Information (Type 10, Obsolete)

§

OemStrings(SMBiosOemStrings<'a>)

OEM Strings (Type 11)

§

SystemConfigurationOptions(SMBiosSystemConfigurationOptions<'a>)

System Configuration Options (Type 12)

§

LanguageInformation(SMBiosBiosLanguageInformation<'a>)

BIOS Language Information (Type 13)

§

GroupAssociations(SMBiosGroupAssociations<'a>)

Group Associations (Type 14)

§

EventLog(SMBiosSystemEventLog<'a>)

System Event Log (Type 15)

§

PhysicalMemoryArray(SMBiosPhysicalMemoryArray<'a>)

Physical Memory Array (Type 16)

§

MemoryDevice(SMBiosMemoryDevice<'a>)

Memory Device (Type 17)

§

MemoryErrorInformation32Bit(SMBiosMemoryErrorInformation32<'a>)

32-Bit Memory Error Information (Type 18)

§

MemoryArrayMappedAddress(SMBiosMemoryArrayMappedAddress<'a>)

Memory Array Mapped Address (Type 19)

§

MemoryDeviceMappedAddress(SMBiosMemoryDeviceMappedAddress<'a>)

Memory Device Mapped Address (Type 20)

§

BuiltInPointingDevice(SMBiosBuiltInPointingDevice<'a>)

Built-in Pointing Device (Type 21)

§

PortableBattery(SMBiosPortableBattery<'a>)

Portable Battery (Type 22)

§

SystemReset(SMBiosSystemReset<'a>)

System Reset (Type 23)

§

HardwareSecurity(SMBiosHardwareSecurity<'a>)

Hardware Security (Type 24)

§

SystemPowerControls(SMBiosSystemPowerControls<'a>)

System Power Controls (Type 25)

§

VoltageProbe(SMBiosVoltageProbe<'a>)

Voltage Probe (Type 26)

§

CoolingDevice(SMBiosCoolingDevice<'a>)

Cooling Device (Type 27)

§

TemperatureProbe(SMBiosTemperatureProbe<'a>)

Temperature Probe (Type 28)

§

ElectricalCurrentProbe(SMBiosElectricalCurrentProbe<'a>)

Electrical Current Probe (Type 29)

§

OutOfBandRemoteAccess(SMBiosOutOfBandRemoteAccess<'a>)

Out-of-Band Remote Access (Type 30)

§

BisEntryPoint(SMBiosBisEntryPoint<'a>)

Boot Integrity Services (BIS) (Type 31)

§

SystemBootInformation(SMBiosSystemBootInformation<'a>)

System Boot Information (Type 32)

§

MemoryErrorInformation64Bit(SMBiosMemoryErrorInformation64<'a>)

64-Bit Memory Error Information (Type 33)

§

ManagementDevice(SMBiosManagementDevice<'a>)

Management Device (Type 34)

§

ManagementDeviceComponent(SMBiosManagementDeviceComponent<'a>)

Management Device Component (Type 35)

§

ManagementDeviceThresholdData(SMBiosManagementDeviceThresholdData<'a>)

Management Device Threshold Data (Type 36)

§

MemoryChannel(SMBiosMemoryChannel<'a>)

Memory Channel (Type 37)

§

IpmiDeviceInformation(SMBiosIpmiDeviceInformation<'a>)

IPMI Device Information (Type 38)

§

SystemPowerSupply(SMBiosSystemPowerSupply<'a>)

Power Supply (Type 39)

§

AdditionalInformation(SMBiosAdditionalInformation<'a>)

Additional Information (Type 40)

§

OnboardDevicesExtendedInformation(SMBiosOnboardDevicesExtendedInformation<'a>)

Onboard Devices Extended Information (Type 41)

§

ManagementControllerHostInterface(SMBiosManagementControllerHostInterface<'a>)

Management Controller Host Interface (Type 42)

§

TpmDevice(SMBiosTpmDevice<'a>)

TPM Device (Type 43)

§

ProcessorAdditionalInformation(SMBiosProcessorAdditionalInformation<'a>)

Processor Additional Information (Type 44)

§

FirmwareInventoryInformation(SMBiosFirmwareInventoryInformation<'a>)

Firmware Inventory Information (Type 45)

§

StringProperty(SMBiosStringProperty<'a>)

String Property (Type 46)

§

Inactive(SMBiosInactive<'a>)

Inactive (Type 126)

§

EndOfTable(SMBiosEndOfTable<'a>)

End-of-Table (Type 127)

§

Undefined(SMBiosUnknown<'a>)

OEM-Defined or Unknown Structure

  • A structure with a type value not yet defined, such as by a DMTF specification that supercedes the types known by this library
  • An OEM type with a value > 127.

Trait Implementations§

source§

impl<'a> Debug for DefinedStruct<'a>

source§

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

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

impl<'a> From<&'a UndefinedStruct> for DefinedStruct<'a>

source§

fn from(undefined_struct: &'a UndefinedStruct) -> Self

Converts to this type from the input type.
source§

impl<'a> Serialize for DefinedStruct<'a>

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

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for DefinedStruct<'a>

§

impl<'a> Send for DefinedStruct<'a>

§

impl<'a> Sync for DefinedStruct<'a>

§

impl<'a> Unpin for DefinedStruct<'a>

§

impl<'a> UnwindSafe for DefinedStruct<'a>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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, U> Into<U> for Twhere 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, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.