Struct smbioslib::TpmDeviceCharacteristics
source · pub struct TpmDeviceCharacteristics {
pub raw: u64,
}
Expand description
Fields§
§raw: u64
Raw value
raw is useful when there are values not yet defiend. This is most likely to occur when the standard was updated but this library code has not been updated to match the current standard.
Implementations§
source§impl TpmDeviceCharacteristics
impl TpmDeviceCharacteristics
sourcepub fn reserved_0(&self) -> bool
pub fn reserved_0(&self) -> bool
Bit 0 - reserved
sourcepub fn reserved_1(&self) -> bool
pub fn reserved_1(&self) -> bool
Bit 1 - reserved
sourcepub fn not_supported(&self) -> bool
pub fn not_supported(&self) -> bool
Bit 2 - TPM Device Characteristics are not supported.
sourcepub fn family_configurable_via_firmware(&self) -> bool
pub fn family_configurable_via_firmware(&self) -> bool
Bit 3 - Family configurable via firmware update; for example, switching between TPM 1.2
sourcepub fn family_configurable_via_software(&self) -> bool
pub fn family_configurable_via_software(&self) -> bool
Bit 4 - Family configurable via platform software support, such as BIOS Setup; for example,
sourcepub fn family_configurable_via_oem(&self) -> bool
pub fn family_configurable_via_oem(&self) -> bool
Bit 5 - Family configurable via OEM proprietary mechanism; for example, switching between TPM 1.2 and TPM 2.0.
Methods from Deref<Target = u64>§
pub const MIN: u64 = 0u64
pub const MAX: u64 = 18_446_744_073_709_551_615u64
pub const BITS: u32 = 64u32
Trait Implementations§
source§impl Debug for TpmDeviceCharacteristics
impl Debug for TpmDeviceCharacteristics
source§impl Deref for TpmDeviceCharacteristics
impl Deref for TpmDeviceCharacteristics
source§impl From<u64> for TpmDeviceCharacteristics
impl From<u64> for TpmDeviceCharacteristics
source§impl PartialEq<TpmDeviceCharacteristics> for TpmDeviceCharacteristics
impl PartialEq<TpmDeviceCharacteristics> for TpmDeviceCharacteristics
source§fn eq(&self, other: &TpmDeviceCharacteristics) -> bool
fn eq(&self, other: &TpmDeviceCharacteristics) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TpmDeviceCharacteristics
impl Serialize for TpmDeviceCharacteristics
impl Eq for TpmDeviceCharacteristics
impl StructuralEq for TpmDeviceCharacteristics
impl StructuralPartialEq for TpmDeviceCharacteristics
Auto Trait Implementations§
impl RefUnwindSafe for TpmDeviceCharacteristics
impl Send for TpmDeviceCharacteristics
impl Sync for TpmDeviceCharacteristics
impl Unpin for TpmDeviceCharacteristics
impl UnwindSafe for TpmDeviceCharacteristics
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more