Struct smbioslib::SMBiosInformation[][src]

pub struct SMBiosInformation<'a> { /* fields omitted */ }

Implementations

impl<'a> SMBiosInformation<'a>[src]

pub fn vendor(&self) -> Option<String>[src]

BIOS vendor’s name

pub fn version(&self) -> Option<String>[src]

BIOS version

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

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

BIOS starting address segment

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

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.

pub fn release_date(&self) -> Option<String>[src]

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.

pub fn rom_size(&self) -> Option<u8>[src]

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

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

BIOS characteristics

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

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

BIOS vendor reserved characteristics

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

System vendor reserved characteristics

pub fn characteristics_extension0(
    &self
) -> Option<BiosCharacteristicsExtension0>
[src]

Characteristics extension byte 0

pub fn characteristics_extension1(
    &self
) -> Option<BiosCharacteristicsExtension1>
[src]

Characteristics extension byte 1

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

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.

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

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.

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

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.

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

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.

pub fn extended_rom_size(&self) -> Option<ExtendedRomSize>[src]

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

impl Debug for SMBiosInformation<'_>[src]

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

Formats the value using the given formatter. Read more

impl<'a> SMBiosStruct<'a> for SMBiosInformation<'a>[src]

const STRUCT_TYPE: u8[src]

The SMBIOS structure type Read more

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

Creates a new instance of the implementing SMBIOS type

fn parts(&self) -> &'a UndefinedStruct[src]

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

impl Serialize for SMBiosInformation<'_>[src]

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
    S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T

Notable traits for &'_ mut R

impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

Notable traits for &'_ mut R

impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.