Struct smbioslib::WinSMBiosData[][src]

pub struct WinSMBiosData {
    pub smbios_data: SMBiosData,
    // some fields omitted
}
Expand description

Raw SMBIOS Data

When Windows kernel32 GetSystemFirmwareTable function is called for RSMB, the raw SMBIOS table provider (‘RSMB’) it retrieves the contents of this raw SMBIOS firmware table structure.

Fields

smbios_data: SMBiosData

SMBios table data

Implementations

Offset of the Used20CallingMethod field (0)

Offset of the SMBIOSMajorVersion field (1)

Offset of the SMBIOSMinorVersion field (2)

Offset of the DMIRevision field (3)

Offset of the Length field (4)

Offset of the SMBIOSTableData field (8)

Creates an instance of WinSMBiosData

To retrieve this structure on a windows system call load_windows_smbios_data().

The new() is provided publicly to allow loading data from other sources such as a file or from memory array as is done with testing.

Verify if a block of data is a valid WinSMBiosData structure

This only checks if the structure itself is valid and not whether the contained SMBiosData structure is valid or not.

The raw SMBIOS data this structure is wrapping

Used20CallingMethod

SMBIOS major version

SMBIOS minor version

DMI revision

Length of the smbios table data

Trait Implementations

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.