pub enum TpmResponseBody {
Show 26 variants
EvictControl(TpmEvictControlResponse),
CreatePrimary(TpmCreatePrimaryResponse),
DictionaryAttackLockReset(TpmDictionaryAttackLockResetResponse),
PcrEvent(TpmPcrEventResponse),
ObjectChangeAuth(TpmObjectChangeAuthResponse),
PolicySecret(TpmPolicySecretResponse),
Create(TpmCreateResponse),
Import(TpmImportResponse),
Load(TpmLoadResponse),
Unseal(TpmUnsealResponse),
ContextLoad(TpmContextLoadResponse),
ContextSave(TpmContextSaveResponse),
FlushContext(TpmFlushContextResponse),
PolicyAuthValue(TpmPolicyAuthValueResponse),
PolicyCommandCode(TpmPolicyCommandCodeResponse),
PolicyOr(TpmPolicyOrResponse),
ReadPublic(TpmReadPublicResponse),
StartAuthSession(TpmStartAuthSessionResponse),
GetCapability(TpmGetCapabilityResponse),
Hash(TpmHashResponse),
PcrRead(TpmPcrReadResponse),
PolicyPcr(TpmPolicyPcrResponse),
PolicyRestart(TpmPolicyRestartResponse),
PolicyGetDigest(TpmPolicyGetDigestResponse),
PolicyPassword(TpmPolicyPasswordResponse),
VendorTcgTest(TpmVendorTcgTestResponse),
}Expand description
A TPM response body
Variants§
EvictControl(TpmEvictControlResponse)
CreatePrimary(TpmCreatePrimaryResponse)
DictionaryAttackLockReset(TpmDictionaryAttackLockResetResponse)
PcrEvent(TpmPcrEventResponse)
ObjectChangeAuth(TpmObjectChangeAuthResponse)
PolicySecret(TpmPolicySecretResponse)
Create(TpmCreateResponse)
Import(TpmImportResponse)
Load(TpmLoadResponse)
Unseal(TpmUnsealResponse)
ContextLoad(TpmContextLoadResponse)
ContextSave(TpmContextSaveResponse)
FlushContext(TpmFlushContextResponse)
PolicyAuthValue(TpmPolicyAuthValueResponse)
PolicyCommandCode(TpmPolicyCommandCodeResponse)
PolicyOr(TpmPolicyOrResponse)
ReadPublic(TpmReadPublicResponse)
StartAuthSession(TpmStartAuthSessionResponse)
GetCapability(TpmGetCapabilityResponse)
Hash(TpmHashResponse)
PcrRead(TpmPcrReadResponse)
PolicyPcr(TpmPolicyPcrResponse)
PolicyRestart(TpmPolicyRestartResponse)
PolicyGetDigest(TpmPolicyGetDigestResponse)
PolicyPassword(TpmPolicyPasswordResponse)
VendorTcgTest(TpmVendorTcgTestResponse)
Implementations§
Source§impl TpmResponseBody
impl TpmResponseBody
Sourcepub fn EvictControl(self) -> Result<TpmEvictControlResponse, Self>
pub fn EvictControl(self) -> Result<TpmEvictControlResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn CreatePrimary(self) -> Result<TpmCreatePrimaryResponse, Self>
pub fn CreatePrimary(self) -> Result<TpmCreatePrimaryResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn DictionaryAttackLockReset(
self,
) -> Result<TpmDictionaryAttackLockResetResponse, Self>
pub fn DictionaryAttackLockReset( self, ) -> Result<TpmDictionaryAttackLockResetResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn PcrEvent(self) -> Result<TpmPcrEventResponse, Self>
pub fn PcrEvent(self) -> Result<TpmPcrEventResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn ObjectChangeAuth(self) -> Result<TpmObjectChangeAuthResponse, Self>
pub fn ObjectChangeAuth(self) -> Result<TpmObjectChangeAuthResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn PolicySecret(self) -> Result<TpmPolicySecretResponse, Self>
pub fn PolicySecret(self) -> Result<TpmPolicySecretResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn Create(self) -> Result<TpmCreateResponse, Self>
pub fn Create(self) -> Result<TpmCreateResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn Import(self) -> Result<TpmImportResponse, Self>
pub fn Import(self) -> Result<TpmImportResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn Load(self) -> Result<TpmLoadResponse, Self>
pub fn Load(self) -> Result<TpmLoadResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn Unseal(self) -> Result<TpmUnsealResponse, Self>
pub fn Unseal(self) -> Result<TpmUnsealResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn ContextLoad(self) -> Result<TpmContextLoadResponse, Self>
pub fn ContextLoad(self) -> Result<TpmContextLoadResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn ContextSave(self) -> Result<TpmContextSaveResponse, Self>
pub fn ContextSave(self) -> Result<TpmContextSaveResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn FlushContext(self) -> Result<TpmFlushContextResponse, Self>
pub fn FlushContext(self) -> Result<TpmFlushContextResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn PolicyAuthValue(self) -> Result<TpmPolicyAuthValueResponse, Self>
pub fn PolicyAuthValue(self) -> Result<TpmPolicyAuthValueResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn PolicyCommandCode(self) -> Result<TpmPolicyCommandCodeResponse, Self>
pub fn PolicyCommandCode(self) -> Result<TpmPolicyCommandCodeResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn PolicyOr(self) -> Result<TpmPolicyOrResponse, Self>
pub fn PolicyOr(self) -> Result<TpmPolicyOrResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn ReadPublic(self) -> Result<TpmReadPublicResponse, Self>
pub fn ReadPublic(self) -> Result<TpmReadPublicResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn StartAuthSession(self) -> Result<TpmStartAuthSessionResponse, Self>
pub fn StartAuthSession(self) -> Result<TpmStartAuthSessionResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn GetCapability(self) -> Result<TpmGetCapabilityResponse, Self>
pub fn GetCapability(self) -> Result<TpmGetCapabilityResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn Hash(self) -> Result<TpmHashResponse, Self>
pub fn Hash(self) -> Result<TpmHashResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn PcrRead(self) -> Result<TpmPcrReadResponse, Self>
pub fn PcrRead(self) -> Result<TpmPcrReadResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn PolicyPcr(self) -> Result<TpmPolicyPcrResponse, Self>
pub fn PolicyPcr(self) -> Result<TpmPolicyPcrResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn PolicyRestart(self) -> Result<TpmPolicyRestartResponse, Self>
pub fn PolicyRestart(self) -> Result<TpmPolicyRestartResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn PolicyGetDigest(self) -> Result<TpmPolicyGetDigestResponse, Self>
pub fn PolicyGetDigest(self) -> Result<TpmPolicyGetDigestResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn PolicyPassword(self) -> Result<TpmPolicyPasswordResponse, Self>
pub fn PolicyPassword(self) -> Result<TpmPolicyPasswordResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Sourcepub fn VendorTcgTest(self) -> Result<TpmVendorTcgTestResponse, Self>
pub fn VendorTcgTest(self) -> Result<TpmVendorTcgTestResponse, Self>
Attempts to convert the TpmResponseBody into a specific response type.
§Errors
Returns the original TpmResponseBody as an error if the enum variant does not match.
Trait Implementations§
Source§impl Clone for TpmResponseBody
impl Clone for TpmResponseBody
Source§fn clone(&self) -> TpmResponseBody
fn clone(&self) -> TpmResponseBody
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more