pub struct Header(_);
Expand description

SMBIOS Header

The header part/section of a structure

Implementations

Total size of a Header (4)

A header has a byte for the struct_type at offset 0, a byte for the length at offset 1, and a word for the handle at offset 2 for a total of 4 bytes.

StructType offset (offset 0 and 1 bytes)

Length offset (offset 1 and 1 bytes)

Handle offset (offset 2 and 2 bytes)

Creates a new Header struct

The type of SMBIOS structure

The length of the structure not including the strings part/section

The handle of this structure instance

Byte iterator of the header

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.