Struct smbioslib::SMBiosTpmDevice[][src]

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

Implementations

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

pub fn vendor_id(&self) -> Option<VendorId<'_>>[src]

Vendor Id

Specified as four ASCII characters, as defined by TCG Vendor ID (see CAP_VID in TCG Vendor ID Registry).

For example: Vendor ID string of “ABC” = (41 42 43 00) Vendor ID string of “ABCD” = (41 42 43 44)

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

Major spec version

Major TPM version supported by the TPM device. For example, the value is 01h for TPM v1.2 and is 02h for TPM v2.0.

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

Minor spec version

Minor TPM version supported by the TPM device. For example, the value is 02h for TPM v1.2 and is 00h for TPM v2.0.

pub fn firmware_version_1(&self) -> Option<u32>[src]

Firmware version 1

For Major Spec Version 01h, this field contains the TPM_VERSION structure defined in the TPM Main Specification, Part 2, Section 5.3.

For Major Spec Version 02h, this field contains the most significant 32 bits of a TPM vendor-specific value for firmware version (see TPM_PT_FIRMWARE_VERSION_1 in TPM Structures specification).

pub fn firmware_version_2(&self) -> Option<u32>[src]

Firmware version 2

For Major Spec Version 01h, this field contains 00h.

For Major Spec Version 02h, this field contains the least significant 32 bits of a TPM vendor-specific value for firmware version (see TPM_PT_FIRMWARE_VERSION_2 in TPM Structures specification).

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

Description

Descriptive information of the TPM device.

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

Characteristics

TPM device characteristics information.

pub fn oem_defined(&self) -> Option<u32>[src]

OEM defined

OEM- or BIOS vendor-specific information

Trait Implementations

impl Debug for SMBiosTpmDevice<'_>[src]

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

Formats the value using the given formatter. Read more

impl<'a> SMBiosStruct<'a> for SMBiosTpmDevice<'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 SMBiosTpmDevice<'_>[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 SMBiosTpmDevice<'a>

impl<'a> Send for SMBiosTpmDevice<'a>

impl<'a> Sync for SMBiosTpmDevice<'a>

impl<'a> Unpin for SMBiosTpmDevice<'a>

impl<'a> UnwindSafe for SMBiosTpmDevice<'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.