Struct smbioslib::SMBiosTpmDevice
source · [−]pub struct SMBiosTpmDevice<'a> { /* private fields */ }
Expand description
Implementations
sourceimpl<'a> SMBiosTpmDevice<'a>
impl<'a> SMBiosTpmDevice<'a>
sourcepub fn vendor_id(&self) -> Option<VendorId<'_>>
pub fn vendor_id(&self) -> Option<VendorId<'_>>
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)
sourcepub fn major_spec_version(&self) -> Option<u8>
pub fn major_spec_version(&self) -> Option<u8>
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.
sourcepub fn minor_spec_version(&self) -> Option<u8>
pub fn minor_spec_version(&self) -> Option<u8>
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.
sourcepub fn firmware_version_1(&self) -> Option<u32>
pub fn firmware_version_1(&self) -> Option<u32>
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).
sourcepub fn firmware_version_2(&self) -> Option<u32>
pub fn firmware_version_2(&self) -> Option<u32>
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).
sourcepub fn description(&self) -> Option<String>
pub fn description(&self) -> Option<String>
Description
Descriptive information of the TPM device.
sourcepub fn characteristics(&self) -> Option<TpmDeviceCharacteristics>
pub fn characteristics(&self) -> Option<TpmDeviceCharacteristics>
Characteristics
TPM device characteristics information.
sourcepub fn oem_defined(&self) -> Option<u32>
pub fn oem_defined(&self) -> Option<u32>
OEM defined
OEM- or BIOS vendor-specific information
Trait Implementations
sourceimpl Debug for SMBiosTpmDevice<'_>
impl Debug for SMBiosTpmDevice<'_>
sourceimpl<'a> SMBiosStruct<'a> for SMBiosTpmDevice<'a>
impl<'a> SMBiosStruct<'a> for SMBiosTpmDevice<'a>
sourceconst STRUCT_TYPE: u8
const STRUCT_TYPE: u8
The SMBIOS structure type Read more
sourcefn new(parts: &'a UndefinedStruct) -> Self
fn new(parts: &'a UndefinedStruct) -> Self
Creates a new instance of the implementing SMBIOS type
sourcefn parts(&self) -> &'a UndefinedStruct
fn parts(&self) -> &'a UndefinedStruct
Contains the standard parts/sections of the implementing SMBIOS type.
sourceimpl Serialize for SMBiosTpmDevice<'_>
impl Serialize for SMBiosTpmDevice<'_>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more