Struct SMBiosInformation

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

§BIOS Information (Type 0)

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

Implementations§

Source§

impl<'a> SMBiosInformation<'a>

Source

pub fn vendor(&self) -> SMBiosString

BIOS vendor’s name

Source

pub fn version(&self) -> SMBiosString

BIOS version

This value is a free-form string that may contain Core and OEM version information.

Source

pub fn starting_address_segment(&self) -> Option<u16>

BIOS starting address segment

Segment location of BIOS starting address (for example, 0E800h).

When not applicable, such as on UEFI-based systems, this value is set to 0000h.

NOTE: The size of the runtime BIOS image can be computed by subtracting the Starting Address Segment from 10000h and multiplying the result by 16.

Source

pub fn release_date(&self) -> SMBiosString

BIOS release date

The date string, if supplied, is in either mm/dd/yy or mm/dd/yyyy format. If the year portion of the string is two digits, the year is assumed to be 19yy.

NOTE: The mm/dd/yyyy format is required for SMBIOS version 2.3 and later.

Source

pub fn rom_size(&self) -> Option<RomSize>

BIOS ROM size

Size (n) where 64K * (n+1) is the size of the physical device containing the BIOS, in bytes.

FFh - size is 16MB or greater, see Extended BIOS ROM Size for actual size

Source

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

BIOS characteristics

Defines which functions the BIOS supports: PCI, PCMCIA, Flash, etc

Source

pub fn bios_vendor_reserved_characteristics(&self) -> Option<u16>

BIOS vendor reserved characteristics

Source

pub fn system_vendor_reserved_characteristics(&self) -> Option<u16>

System vendor reserved characteristics

Source

pub fn characteristics_extension0( &self, ) -> Option<BiosCharacteristicsExtension0>

Characteristics extension byte 0

Source

pub fn characteristics_extension1( &self, ) -> Option<BiosCharacteristicsExtension1>

Characteristics extension byte 1

Source

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

System BIOS major release

Identifies the major release of the System BIOS; for example, the value is 0Ah for revision 10.22 and 02h for revision 2.1.

This field or the System BIOS Minor Release field or both are updated each time a System BIOS update for a given system is released.

If the system does not support the use of this field, the value is 0FFh for both this field and the System BIOS Minor Release field.

Source

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

System BIOS minor release

Identifies the minor release of the System BIOS; for example, the value is 16h for revision 10.22 and 01h for revision 2.1.

Source

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

Embedded controller firmware major release

Identifies the major release of the embedded controller firmware; for example, the value would be 0Ah for revision 10.22 and 02h for revision 2.1.

This field or the Embedded Controller Firmware Minor Release field or both are updated each time an embedded controller firmware update for a given system is released.

If the system does not have field upgradeable embedded controller firmware, the value is 0FFh.

Source

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

Embedded controller firmware minor release

Identifies the minor release of the embedded controller firmware; for example, the value is 16h for revision 10.22 and 01h for revision 2.1. If the system does not have field upgradeable embedded controller firmware, the value is 0FFh.

Source

pub fn extended_rom_size(&self) -> Option<RomSize>

Extended BIOS ROM size

Extended size of the physical device(s) containing the BIOS, rounded up if needed.

Bits 15:14 Unit 00b - megabytes 01b - gigabytes 10b - reserved 11b - reserved Bits 13:0 Size

Examples: a 16 MB device would be represented as 0010h. A 48 GB device set would be represented as 0100_0000_0011_0000b or 4030h.

Trait Implementations§

Source§

impl Debug for SMBiosInformation<'_>

Source§

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

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

impl<'a> SMBiosStruct<'a> for SMBiosInformation<'a>

Source§

const STRUCT_TYPE: u8 = 0u8

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 SMBiosInformation<'_>

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> Freeze for SMBiosInformation<'a>

§

impl<'a> RefUnwindSafe for SMBiosInformation<'a>

§

impl<'a> Send for SMBiosInformation<'a>

§

impl<'a> Sync for SMBiosInformation<'a>

§

impl<'a> Unpin for SMBiosInformation<'a>

§

impl<'a> UnwindSafe for SMBiosInformation<'a>

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.