#[repr(C)]pub struct BootServiceCapability { /* private fields */ }
Expand description
Information about the protocol and the TPM device.
Layout compatible with the C type TCG_EFI_BOOT_SERVICE_CAPABILITY
.
Implementations§
source§impl BootServiceCapability
impl BootServiceCapability
sourcepub fn structure_version(&self) -> Version
pub fn structure_version(&self) -> Version
Version of the BootServiceCapability
structure.
sourcepub fn protocol_spec_version(&self) -> Version
pub fn protocol_spec_version(&self) -> Version
Version of the Tcg
protocol.
sourcepub fn hash_algorithm(&self) -> HashAlgorithm
pub fn hash_algorithm(&self) -> HashAlgorithm
Supported hash algorithms.
sourcepub fn tpm_present(&self) -> bool
pub fn tpm_present(&self) -> bool
Whether the TPM device is present.
sourcepub fn tpm_deactivated(&self) -> bool
pub fn tpm_deactivated(&self) -> bool
Whether the TPM device is deactivated.
Trait Implementations§
source§impl Clone for BootServiceCapability
impl Clone for BootServiceCapability
source§fn clone(&self) -> BootServiceCapability
fn clone(&self) -> BootServiceCapability
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BootServiceCapability
impl Debug for BootServiceCapability
source§impl Default for BootServiceCapability
impl Default for BootServiceCapability
source§fn default() -> BootServiceCapability
fn default() -> BootServiceCapability
Returns the “default value” for a type. Read more
source§impl Ord for BootServiceCapability
impl Ord for BootServiceCapability
source§fn cmp(&self, other: &BootServiceCapability) -> Ordering
fn cmp(&self, other: &BootServiceCapability) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for BootServiceCapability
impl PartialEq for BootServiceCapability
source§fn eq(&self, other: &BootServiceCapability) -> bool
fn eq(&self, other: &BootServiceCapability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BootServiceCapability
impl PartialOrd for BootServiceCapability
source§fn partial_cmp(&self, other: &BootServiceCapability) -> Option<Ordering>
fn partial_cmp(&self, other: &BootServiceCapability) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for BootServiceCapability
impl Eq for BootServiceCapability
impl StructuralPartialEq for BootServiceCapability
Auto Trait Implementations§
impl Freeze for BootServiceCapability
impl RefUnwindSafe for BootServiceCapability
impl Send for BootServiceCapability
impl Sync for BootServiceCapability
impl Unpin for BootServiceCapability
impl UnwindSafe for BootServiceCapability
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