Struct smbioslib::SMBiosData[][src]

pub struct SMBiosData {
    pub version: Option<SMBiosVersion>,
    // some fields omitted
}
Expand description

SMBIOS Data

Contains an optional SMBIOS version and a collection of SMBIOS structures.

Fields

version: Option<SMBiosVersion>

Version of the contained SMBIOS structures.

Implementations

Creates an SMBIOS table parser which can be iterated

table is iterable table data. version is optional and represents the DMTF SMBIOS Standard version of the bytes in data.

Creates an SMBIOS table parser which can be iterated

data is a block of bytes representing the raw table data. version is optional and represents the DMTF SMBIOS Standard version of the bytes in data.

Loads raw SMBios table data from a file

Iterator of the contained UndefinedStruct items

An iterator over the defined type instances within the table.

Tests if every element of the defined struct iterator matches a predicate.

Tests if any element of the defined struct iterator matches a predicate.

Finds the first occurance of the structure

Finds the first occurance of the structure that satisfies a predicate.

Applies function to the defined struct elements and returns the first non-none result.

Creates an iterator of the defined structure which uses a closure to determine if an element should be yielded.

Takes a closure and creates an iterator which calls that closure on each defined struct.

Creates an iterator that both filters and maps from the defined struct iterator.

Finds the structure matching the given handle

Finds all occurances of the structure

Trait Implementations

Formats the value using the given formatter. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. 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.