Struct SMBiosFirmwareInventoryInformation

Source
pub struct SMBiosFirmwareInventoryInformation<'a> { /* private fields */ }
Expand description

§Firmware Inventory Information (Type 45)

The information in this structure defines an inventory of firmware components in the system. This can include firmware components such as BIOS, BMC, as well as firmware for other devices in the system.

The information can be used by software to display the firmware inventory in a uniform manner. It can also be used by a management controller, such as a BMC, for remote system management. This structure is not intended to replace other standard programmatic interfaces for firmware updates.

One Type 45 structure is provided for each firmware component.

NOTE: This structure type was added in version 3.5 of this specification.

Compliant with: DMTF SMBIOS Reference Specification 3.5.0 (DSP0134) Document Date: 2021-09-15

Implementations§

Source§

impl<'a> SMBiosFirmwareInventoryInformation<'a>

Source

pub fn firmware_component_name(&self) -> SMBiosString

Firmware Component Name

EXAMPLE: ‘BMC Firmware’,0

Source

pub fn firmware_version(&self) -> SMBiosString

Firmware Version

The format of this value is defined by version_format

Source

pub fn version_format(&self) -> Option<VersionFormatData>

Version Format

Source

pub fn firmware_id(&self) -> SMBiosString

Firmware ID

The format of this value is defined by firmware_id_format

Source

pub fn firmware_id_format(&self) -> Option<FirmwareIdFormatData>

Firmware ID Format

Source

pub fn release_date(&self) -> SMBiosString

Release Date

Source

pub fn manufacturer(&self) -> SMBiosString

Manufacturer

Source

pub fn lowest_supported_firmware_version(&self) -> SMBiosString

Lowest Supported Firmware Version

The format of this value is defined by version_format

Source

pub fn image_size(&self) -> Option<FirmwareImageSize>

Image Size

Size of the firmware image that is currently programmed in the device, in bytes. If the Firmware Image Size is unknown, the field is set to FirmwareImageSize::Unknown.

Source

pub fn characteristics(&self) -> Option<FirmwareInventoryCharacteristics>

Firmware characteristics information.

Source

pub fn state(&self) -> Option<FirmwareInventoryStateInformationData>

Firmware state information.

Source

pub fn number_of_associated_components(&self) -> Option<u8>

Defines how many Associated Component Handles are associated with this firmware.

Source

pub fn associated_component_handle_iterator( &'a self, ) -> AssociatedComponentHandleIterator<'a>

Lists the SMBIOS structure handles that are associated with this firmware, if any.

Value of number_of_associated_components field (n) defines the count.

NOTE: This list may contain zero or more handles to any SMBIOS structure that represents a device with a firmware component.

Trait Implementations§

Source§

impl Debug for SMBiosFirmwareInventoryInformation<'_>

Source§

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

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

impl<'a> SMBiosStruct<'a> for SMBiosFirmwareInventoryInformation<'a>

Source§

const STRUCT_TYPE: u8 = 45u8

The SMBIOS structure type Read more
Source§

fn new(parts: &'a UndefinedStruct) -> Self

Creates a new instance of the implementing SMBIOS type
Source§

fn parts(&self) -> &'a UndefinedStruct

Contains the standard parts/sections of the implementing SMBIOS type.
Source§

impl Serialize for SMBiosFirmwareInventoryInformation<'_>

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§

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, 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, 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.