pub enum TpmHandle {
Pcr(PcrTpmHandle),
NvIndex(NvIndexTpmHandle),
HmacSession(HmacSessionTpmHandle),
LoadedSession(LoadedSessionTpmHandle),
PolicySession(PolicySessionTpmHandle),
SavedSession(SavedSessionTpmHandle),
Permanent(PermanentTpmHandle),
Transient(TransientTpmHandle),
Persistent(PersistentTpmHandle),
AttachedComponent(AttachedComponentTpmHandle),
}
Expand description
Enum representing the different types of tpm handles of a TPM handle.
-
Details The TPM handles are used to reference shielded locations of various types within the TPM.
-
OBS Do not confuse the TpmHandles with the ESYS ObjectHandle.
Variants
Pcr(PcrTpmHandle)
NvIndex(NvIndexTpmHandle)
HmacSession(HmacSessionTpmHandle)
LoadedSession(LoadedSessionTpmHandle)
PolicySession(PolicySessionTpmHandle)
SavedSession(SavedSessionTpmHandle)
Permanent(PermanentTpmHandle)
Transient(TransientTpmHandle)
Persistent(PersistentTpmHandle)
AttachedComponent(AttachedComponentTpmHandle)
Trait Implementations
sourceimpl From<AttachedComponentTpmHandle> for TpmHandle
impl From<AttachedComponentTpmHandle> for TpmHandle
sourcefn from(specific_tpm_handle: AttachedComponentTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: AttachedComponentTpmHandle) -> TpmHandle
Performs the conversion.
sourceimpl From<HierarchyAuth> for TpmHandle
impl From<HierarchyAuth> for TpmHandle
sourcefn from(hierarchy_auth: HierarchyAuth) -> TpmHandle
fn from(hierarchy_auth: HierarchyAuth) -> TpmHandle
Performs the conversion.
sourceimpl From<HmacSessionTpmHandle> for TpmHandle
impl From<HmacSessionTpmHandle> for TpmHandle
sourcefn from(specific_tpm_handle: HmacSessionTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: HmacSessionTpmHandle) -> TpmHandle
Performs the conversion.
sourceimpl From<LoadedSessionTpmHandle> for TpmHandle
impl From<LoadedSessionTpmHandle> for TpmHandle
sourcefn from(specific_tpm_handle: LoadedSessionTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: LoadedSessionTpmHandle) -> TpmHandle
Performs the conversion.
sourceimpl From<NvIndexTpmHandle> for TpmHandle
impl From<NvIndexTpmHandle> for TpmHandle
sourcefn from(specific_tpm_handle: NvIndexTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: NvIndexTpmHandle) -> TpmHandle
Performs the conversion.
sourceimpl From<PcrTpmHandle> for TpmHandle
impl From<PcrTpmHandle> for TpmHandle
sourcefn from(specific_tpm_handle: PcrTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: PcrTpmHandle) -> TpmHandle
Performs the conversion.
sourceimpl From<PermanentTpmHandle> for TpmHandle
impl From<PermanentTpmHandle> for TpmHandle
sourcefn from(specific_tpm_handle: PermanentTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: PermanentTpmHandle) -> TpmHandle
Performs the conversion.
sourceimpl From<PersistentTpmHandle> for TpmHandle
impl From<PersistentTpmHandle> for TpmHandle
sourcefn from(specific_tpm_handle: PersistentTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: PersistentTpmHandle) -> TpmHandle
Performs the conversion.
sourceimpl From<PolicySessionTpmHandle> for TpmHandle
impl From<PolicySessionTpmHandle> for TpmHandle
sourcefn from(specific_tpm_handle: PolicySessionTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: PolicySessionTpmHandle) -> TpmHandle
Performs the conversion.
sourceimpl From<SavedSessionTpmHandle> for TpmHandle
impl From<SavedSessionTpmHandle> for TpmHandle
sourcefn from(specific_tpm_handle: SavedSessionTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: SavedSessionTpmHandle) -> TpmHandle
Performs the conversion.
sourceimpl From<TpmHandle> for TPM2_HANDLE
impl From<TpmHandle> for TPM2_HANDLE
sourcefn from(tpm_handle: TpmHandle) -> TPM2_HANDLE
fn from(tpm_handle: TpmHandle) -> TPM2_HANDLE
Performs the conversion.
sourceimpl From<TransientTpmHandle> for TpmHandle
impl From<TransientTpmHandle> for TpmHandle
sourcefn from(specific_tpm_handle: TransientTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: TransientTpmHandle) -> TpmHandle
Performs the conversion.
sourceimpl TryFrom<TpmHandle> for PcrTpmHandle
impl TryFrom<TpmHandle> for PcrTpmHandle
sourceimpl TryFrom<TpmHandle> for NvIndexTpmHandle
impl TryFrom<TpmHandle> for NvIndexTpmHandle
sourceimpl TryFrom<TpmHandle> for HierarchyAuth
impl TryFrom<TpmHandle> for HierarchyAuth
sourceimpl TryFrom<TpmHandle> for HmacSessionTpmHandle
impl TryFrom<TpmHandle> for HmacSessionTpmHandle
sourceimpl TryFrom<TpmHandle> for LoadedSessionTpmHandle
impl TryFrom<TpmHandle> for LoadedSessionTpmHandle
sourceimpl TryFrom<TpmHandle> for PolicySessionTpmHandle
impl TryFrom<TpmHandle> for PolicySessionTpmHandle
sourceimpl TryFrom<TpmHandle> for PermanentTpmHandle
impl TryFrom<TpmHandle> for PermanentTpmHandle
sourceimpl TryFrom<TpmHandle> for SavedSessionTpmHandle
impl TryFrom<TpmHandle> for SavedSessionTpmHandle
sourceimpl TryFrom<TpmHandle> for TransientTpmHandle
impl TryFrom<TpmHandle> for TransientTpmHandle
sourceimpl TryFrom<TpmHandle> for PersistentTpmHandle
impl TryFrom<TpmHandle> for PersistentTpmHandle
sourceimpl TryFrom<TpmHandle> for AttachedComponentTpmHandle
impl TryFrom<TpmHandle> for AttachedComponentTpmHandle
impl Copy for TpmHandle
impl Eq for TpmHandle
impl StructuralEq for TpmHandle
impl StructuralPartialEq for TpmHandle
Auto Trait Implementations
impl RefUnwindSafe for TpmHandle
impl Send for TpmHandle
impl Sync for TpmHandle
impl Unpin for TpmHandle
impl UnwindSafe for TpmHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more