pub enum TpmResponseBody {
Show 125 variants
NvUndefineSpaceSpecial(TpmNvUndefineSpaceSpecialResponse),
EvictControl(TpmEvictControlResponse),
HierarchyControl(TpmHierarchyControlResponse),
NvUndefineSpace(TpmNvUndefineSpaceResponse),
ChangeEps(TpmChangeEpsResponse),
ChangePps(TpmChangePpsResponse),
Clear(TpmClearResponse),
ClearControl(TpmClearControlResponse),
ClockSet(TpmClockSetResponse),
HierarchyChangeAuth(TpmHierarchyChangeAuthResponse),
NvDefineSpace(TpmNvDefineSpaceResponse),
PcrAllocate(TpmPcrAllocateResponse),
PcrSetAuthPolicy(TpmPcrSetAuthPolicyResponse),
PpCommands(TpmPpCommandsResponse),
SetPrimaryPolicy(TpmSetPrimaryPolicyResponse),
FieldUpgradeStart(TpmFieldUpgradeStartResponse),
ClockRateAdjust(TpmClockRateAdjustResponse),
CreatePrimary(TpmCreatePrimaryResponse),
NvGlobalWriteLock(TpmNvGlobalWriteLockResponse),
GetCommandAuditDigest(TpmGetCommandAuditDigestResponse),
NvIncrement(TpmNvIncrementResponse),
NvSetBits(TpmNvSetBitsResponse),
NvExtend(TpmNvExtendResponse),
NvWrite(TpmNvWriteResponse),
NvWriteLock(TpmNvWriteLockResponse),
DictionaryAttackLockReset(TpmDictionaryAttackLockResetResponse),
DictionaryAttackParameters(TpmDictionaryAttackParametersResponse),
NvChangeAuth(TpmNvChangeAuthResponse),
PcrEvent(TpmPcrEventResponse),
PcrReset(TpmPcrResetResponse),
SequenceComplete(TpmSequenceCompleteResponse),
SetAlgorithmSet(TpmSetAlgorithmSetResponse),
SetCommandCodeAuditStatus(TpmSetCommandCodeAuditStatusResponse),
FieldUpgradeData(TpmFieldUpgradeDataResponse),
IncrementalSelfTest(TpmIncrementalSelfTestResponse),
SelfTest(TpmSelfTestResponse),
Startup(TpmStartupResponse),
Shutdown(TpmShutdownResponse),
StirRandom(TpmStirRandomResponse),
ActivateCredential(TpmActivateCredentialResponse),
Certify(TpmCertifyResponse),
PolicyNv(TpmPolicyNvResponse),
CertifyCreation(TpmCertifyCreationResponse),
Duplicate(TpmDuplicateResponse),
GetTime(TpmGetTimeResponse),
GetSessionAuditDigest(TpmGetSessionAuditDigestResponse),
NvRead(TpmNvReadResponse),
NvReadLock(TpmNvReadLockResponse),
ObjectChangeAuth(TpmObjectChangeAuthResponse),
PolicySecret(TpmPolicySecretResponse),
Rewrap(TpmRewrapResponse),
Create(TpmCreateResponse),
EcdhZGen(TpmEcdhZGenResponse),
Hmac(TpmHmacResponse),
Import(TpmImportResponse),
Load(TpmLoadResponse),
Quote(TpmQuoteResponse),
RsaDecrypt(TpmRsaDecryptResponse),
HmacStart(TpmHmacStartResponse),
SequenceUpdate(TpmSequenceUpdateResponse),
Sign(TpmSignResponse),
Unseal(TpmUnsealResponse),
PolicySigned(TpmPolicySignedResponse),
ContextLoad(TpmContextLoadResponse),
ContextSave(TpmContextSaveResponse),
EcdhKeyGen(TpmEcdhKeyGenResponse),
EncryptDecrypt(TpmEncryptDecryptResponse),
FlushContext(TpmFlushContextResponse),
LoadExternal(TpmLoadExternalResponse),
MakeCredential(TpmMakeCredentialResponse),
NvReadPublic(TpmNvReadPublicResponse),
PolicyAuthorize(TpmPolicyAuthorizeResponse),
PolicyAuthValue(TpmPolicyAuthValueResponse),
PolicyCommandCode(TpmPolicyCommandCodeResponse),
PolicyCounterTimer(TpmPolicyCounterTimerResponse),
PolicyCpHash(TpmPolicyCpHashResponse),
PolicyLocality(TpmPolicyLocalityResponse),
PolicyNameHash(TpmPolicyNameHashResponse),
PolicyOr(TpmPolicyOrResponse),
PolicyTicket(TpmPolicyTicketResponse),
ReadPublic(TpmReadPublicResponse),
RsaEncrypt(TpmRsaEncryptResponse),
StartAuthSession(TpmStartAuthSessionResponse),
VerifySignature(TpmVerifySignatureResponse),
EccParameters(TpmEccParametersResponse),
FirmwareRead(TpmFirmwareReadResponse),
GetCapability(TpmGetCapabilityResponse),
GetRandom(TpmGetRandomResponse),
GetTestResult(TpmGetTestResultResponse),
Hash(TpmHashResponse),
PcrRead(TpmPcrReadResponse),
PolicyPcr(TpmPolicyPcrResponse),
PolicyRestart(TpmPolicyRestartResponse),
ReadClock(TpmReadClockResponse),
PcrExtend(TpmPcrExtendResponse),
PcrSetAuthValue(TpmPcrSetAuthValueResponse),
NvCertify(TpmNvCertifyResponse),
EventSequenceComplete(TpmEventSequenceCompleteResponse),
HashSequenceStart(TpmHashSequenceStartResponse),
PolicyPhysicalPresence(TpmPolicyPhysicalPresenceResponse),
PolicyDuplicationSelect(TpmPolicyDuplicationSelectResponse),
PolicyGetDigest(TpmPolicyGetDigestResponse),
TestParms(TpmTestParmsResponse),
Commit(TpmCommitResponse),
PolicyPassword(TpmPolicyPasswordResponse),
ZGen2Phase(TpmZGen2PhaseResponse),
EcEphemeral(TpmEcEphemeralResponse),
PolicyNvWritten(TpmPolicyNvWrittenResponse),
PolicyTemplate(TpmPolicyTemplateResponse),
CreateLoaded(TpmCreateLoadedResponse),
PolicyAuthorizeNv(TpmPolicyAuthorizeNvResponse),
EncryptDecrypt2(TpmEncryptDecrypt2Response),
AcGetCapability(TpmAcGetCapabilityResponse),
AcSend(TpmAcSendResponse),
PolicyAcSendSelect(TpmPolicyAcSendSelectResponse),
ActSetTimeout(TpmActSetTimeoutResponse),
EccEncrypt(TpmEccEncryptResponse),
EccDecrypt(TpmEccDecryptResponse),
PolicyCapability(TpmPolicyCapabilityResponse),
PolicyParameters(TpmPolicyParametersResponse),
NvDefineSpace2(TpmNvDefineSpace2Response),
NvReadPublic2(TpmNvReadPublic2Response),
ReadOnlyControl(TpmReadOnlyControlResponse),
PolicyTransportSpdm(TpmPolicyTransportSpdmResponse),
VendorTcgTest(TpmVendorTcgTestResponse),
}Expand description
A TPM response body
Variants§
NvUndefineSpaceSpecial(TpmNvUndefineSpaceSpecialResponse)
EvictControl(TpmEvictControlResponse)
HierarchyControl(TpmHierarchyControlResponse)
NvUndefineSpace(TpmNvUndefineSpaceResponse)
ChangeEps(TpmChangeEpsResponse)
ChangePps(TpmChangePpsResponse)
Clear(TpmClearResponse)
ClearControl(TpmClearControlResponse)
ClockSet(TpmClockSetResponse)
HierarchyChangeAuth(TpmHierarchyChangeAuthResponse)
NvDefineSpace(TpmNvDefineSpaceResponse)
PcrAllocate(TpmPcrAllocateResponse)
PcrSetAuthPolicy(TpmPcrSetAuthPolicyResponse)
PpCommands(TpmPpCommandsResponse)
SetPrimaryPolicy(TpmSetPrimaryPolicyResponse)
FieldUpgradeStart(TpmFieldUpgradeStartResponse)
ClockRateAdjust(TpmClockRateAdjustResponse)
CreatePrimary(TpmCreatePrimaryResponse)
NvGlobalWriteLock(TpmNvGlobalWriteLockResponse)
GetCommandAuditDigest(TpmGetCommandAuditDigestResponse)
NvIncrement(TpmNvIncrementResponse)
NvSetBits(TpmNvSetBitsResponse)
NvExtend(TpmNvExtendResponse)
NvWrite(TpmNvWriteResponse)
NvWriteLock(TpmNvWriteLockResponse)
DictionaryAttackLockReset(TpmDictionaryAttackLockResetResponse)
DictionaryAttackParameters(TpmDictionaryAttackParametersResponse)
NvChangeAuth(TpmNvChangeAuthResponse)
PcrEvent(TpmPcrEventResponse)
PcrReset(TpmPcrResetResponse)
SequenceComplete(TpmSequenceCompleteResponse)
SetAlgorithmSet(TpmSetAlgorithmSetResponse)
SetCommandCodeAuditStatus(TpmSetCommandCodeAuditStatusResponse)
FieldUpgradeData(TpmFieldUpgradeDataResponse)
IncrementalSelfTest(TpmIncrementalSelfTestResponse)
SelfTest(TpmSelfTestResponse)
Startup(TpmStartupResponse)
Shutdown(TpmShutdownResponse)
StirRandom(TpmStirRandomResponse)
ActivateCredential(TpmActivateCredentialResponse)
Certify(TpmCertifyResponse)
PolicyNv(TpmPolicyNvResponse)
CertifyCreation(TpmCertifyCreationResponse)
Duplicate(TpmDuplicateResponse)
GetTime(TpmGetTimeResponse)
GetSessionAuditDigest(TpmGetSessionAuditDigestResponse)
NvRead(TpmNvReadResponse)
NvReadLock(TpmNvReadLockResponse)
ObjectChangeAuth(TpmObjectChangeAuthResponse)
PolicySecret(TpmPolicySecretResponse)
Rewrap(TpmRewrapResponse)
Create(TpmCreateResponse)
EcdhZGen(TpmEcdhZGenResponse)
Hmac(TpmHmacResponse)
Import(TpmImportResponse)
Load(TpmLoadResponse)
Quote(TpmQuoteResponse)
RsaDecrypt(TpmRsaDecryptResponse)
HmacStart(TpmHmacStartResponse)
SequenceUpdate(TpmSequenceUpdateResponse)
Sign(TpmSignResponse)
Unseal(TpmUnsealResponse)
PolicySigned(TpmPolicySignedResponse)
ContextLoad(TpmContextLoadResponse)
ContextSave(TpmContextSaveResponse)
EcdhKeyGen(TpmEcdhKeyGenResponse)
EncryptDecrypt(TpmEncryptDecryptResponse)
FlushContext(TpmFlushContextResponse)
LoadExternal(TpmLoadExternalResponse)
MakeCredential(TpmMakeCredentialResponse)
NvReadPublic(TpmNvReadPublicResponse)
PolicyAuthorize(TpmPolicyAuthorizeResponse)
PolicyAuthValue(TpmPolicyAuthValueResponse)
PolicyCommandCode(TpmPolicyCommandCodeResponse)
PolicyCounterTimer(TpmPolicyCounterTimerResponse)
PolicyCpHash(TpmPolicyCpHashResponse)
PolicyLocality(TpmPolicyLocalityResponse)
PolicyNameHash(TpmPolicyNameHashResponse)
PolicyOr(TpmPolicyOrResponse)
PolicyTicket(TpmPolicyTicketResponse)
ReadPublic(TpmReadPublicResponse)
RsaEncrypt(TpmRsaEncryptResponse)
StartAuthSession(TpmStartAuthSessionResponse)
VerifySignature(TpmVerifySignatureResponse)
EccParameters(TpmEccParametersResponse)
FirmwareRead(TpmFirmwareReadResponse)
GetCapability(TpmGetCapabilityResponse)
GetRandom(TpmGetRandomResponse)
GetTestResult(TpmGetTestResultResponse)
Hash(TpmHashResponse)
PcrRead(TpmPcrReadResponse)
PolicyPcr(TpmPolicyPcrResponse)
PolicyRestart(TpmPolicyRestartResponse)
ReadClock(TpmReadClockResponse)
PcrExtend(TpmPcrExtendResponse)
PcrSetAuthValue(TpmPcrSetAuthValueResponse)
NvCertify(TpmNvCertifyResponse)
EventSequenceComplete(TpmEventSequenceCompleteResponse)
HashSequenceStart(TpmHashSequenceStartResponse)
PolicyPhysicalPresence(TpmPolicyPhysicalPresenceResponse)
PolicyDuplicationSelect(TpmPolicyDuplicationSelectResponse)
PolicyGetDigest(TpmPolicyGetDigestResponse)
TestParms(TpmTestParmsResponse)
Commit(TpmCommitResponse)
PolicyPassword(TpmPolicyPasswordResponse)
ZGen2Phase(TpmZGen2PhaseResponse)
EcEphemeral(TpmEcEphemeralResponse)
PolicyNvWritten(TpmPolicyNvWrittenResponse)
PolicyTemplate(TpmPolicyTemplateResponse)
CreateLoaded(TpmCreateLoadedResponse)
PolicyAuthorizeNv(TpmPolicyAuthorizeNvResponse)
EncryptDecrypt2(TpmEncryptDecrypt2Response)
AcGetCapability(TpmAcGetCapabilityResponse)
AcSend(TpmAcSendResponse)
PolicyAcSendSelect(TpmPolicyAcSendSelectResponse)
ActSetTimeout(TpmActSetTimeoutResponse)
EccEncrypt(TpmEccEncryptResponse)
EccDecrypt(TpmEccDecryptResponse)
PolicyCapability(TpmPolicyCapabilityResponse)
PolicyParameters(TpmPolicyParametersResponse)
NvDefineSpace2(TpmNvDefineSpace2Response)
NvReadPublic2(TpmNvReadPublic2Response)
ReadOnlyControl(TpmReadOnlyControlResponse)
PolicyTransportSpdm(TpmPolicyTransportSpdmResponse)
VendorTcgTest(TpmVendorTcgTestResponse)
Implementations§
Source§impl TpmResponseBody
impl TpmResponseBody
pub fn cc(&self) -> TpmCc
Sourcepub fn NvUndefineSpaceSpecial(
self,
) -> Result<TpmNvUndefineSpaceSpecialResponse, Self>
pub fn NvUndefineSpaceSpecial( self, ) -> Result<TpmNvUndefineSpaceSpecialResponse, 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 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 HierarchyControl(self) -> Result<TpmHierarchyControlResponse, Self>
pub fn HierarchyControl(self) -> Result<TpmHierarchyControlResponse, 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 NvUndefineSpace(self) -> Result<TpmNvUndefineSpaceResponse, Self>
pub fn NvUndefineSpace(self) -> Result<TpmNvUndefineSpaceResponse, 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 ChangeEps(self) -> Result<TpmChangeEpsResponse, Self>
pub fn ChangeEps(self) -> Result<TpmChangeEpsResponse, 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 ChangePps(self) -> Result<TpmChangePpsResponse, Self>
pub fn ChangePps(self) -> Result<TpmChangePpsResponse, 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 Clear(self) -> Result<TpmClearResponse, Self>
pub fn Clear(self) -> Result<TpmClearResponse, 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 ClearControl(self) -> Result<TpmClearControlResponse, Self>
pub fn ClearControl(self) -> Result<TpmClearControlResponse, 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 ClockSet(self) -> Result<TpmClockSetResponse, Self>
pub fn ClockSet(self) -> Result<TpmClockSetResponse, 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 HierarchyChangeAuth(self) -> Result<TpmHierarchyChangeAuthResponse, Self>
pub fn HierarchyChangeAuth(self) -> Result<TpmHierarchyChangeAuthResponse, 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 NvDefineSpace(self) -> Result<TpmNvDefineSpaceResponse, Self>
pub fn NvDefineSpace(self) -> Result<TpmNvDefineSpaceResponse, 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 PcrAllocate(self) -> Result<TpmPcrAllocateResponse, Self>
pub fn PcrAllocate(self) -> Result<TpmPcrAllocateResponse, 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 PcrSetAuthPolicy(self) -> Result<TpmPcrSetAuthPolicyResponse, Self>
pub fn PcrSetAuthPolicy(self) -> Result<TpmPcrSetAuthPolicyResponse, 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 PpCommands(self) -> Result<TpmPpCommandsResponse, Self>
pub fn PpCommands(self) -> Result<TpmPpCommandsResponse, 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 SetPrimaryPolicy(self) -> Result<TpmSetPrimaryPolicyResponse, Self>
pub fn SetPrimaryPolicy(self) -> Result<TpmSetPrimaryPolicyResponse, 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 FieldUpgradeStart(self) -> Result<TpmFieldUpgradeStartResponse, Self>
pub fn FieldUpgradeStart(self) -> Result<TpmFieldUpgradeStartResponse, 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 ClockRateAdjust(self) -> Result<TpmClockRateAdjustResponse, Self>
pub fn ClockRateAdjust(self) -> Result<TpmClockRateAdjustResponse, 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 NvGlobalWriteLock(self) -> Result<TpmNvGlobalWriteLockResponse, Self>
pub fn NvGlobalWriteLock(self) -> Result<TpmNvGlobalWriteLockResponse, 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 GetCommandAuditDigest(
self,
) -> Result<TpmGetCommandAuditDigestResponse, Self>
pub fn GetCommandAuditDigest( self, ) -> Result<TpmGetCommandAuditDigestResponse, 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 NvIncrement(self) -> Result<TpmNvIncrementResponse, Self>
pub fn NvIncrement(self) -> Result<TpmNvIncrementResponse, 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 NvSetBits(self) -> Result<TpmNvSetBitsResponse, Self>
pub fn NvSetBits(self) -> Result<TpmNvSetBitsResponse, 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 NvExtend(self) -> Result<TpmNvExtendResponse, Self>
pub fn NvExtend(self) -> Result<TpmNvExtendResponse, 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 NvWrite(self) -> Result<TpmNvWriteResponse, Self>
pub fn NvWrite(self) -> Result<TpmNvWriteResponse, 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 NvWriteLock(self) -> Result<TpmNvWriteLockResponse, Self>
pub fn NvWriteLock(self) -> Result<TpmNvWriteLockResponse, 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 DictionaryAttackParameters(
self,
) -> Result<TpmDictionaryAttackParametersResponse, Self>
pub fn DictionaryAttackParameters( self, ) -> Result<TpmDictionaryAttackParametersResponse, 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 NvChangeAuth(self) -> Result<TpmNvChangeAuthResponse, Self>
pub fn NvChangeAuth(self) -> Result<TpmNvChangeAuthResponse, 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 PcrReset(self) -> Result<TpmPcrResetResponse, Self>
pub fn PcrReset(self) -> Result<TpmPcrResetResponse, 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 SequenceComplete(self) -> Result<TpmSequenceCompleteResponse, Self>
pub fn SequenceComplete(self) -> Result<TpmSequenceCompleteResponse, 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 SetAlgorithmSet(self) -> Result<TpmSetAlgorithmSetResponse, Self>
pub fn SetAlgorithmSet(self) -> Result<TpmSetAlgorithmSetResponse, 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 SetCommandCodeAuditStatus(
self,
) -> Result<TpmSetCommandCodeAuditStatusResponse, Self>
pub fn SetCommandCodeAuditStatus( self, ) -> Result<TpmSetCommandCodeAuditStatusResponse, 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 FieldUpgradeData(self) -> Result<TpmFieldUpgradeDataResponse, Self>
pub fn FieldUpgradeData(self) -> Result<TpmFieldUpgradeDataResponse, 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 IncrementalSelfTest(self) -> Result<TpmIncrementalSelfTestResponse, Self>
pub fn IncrementalSelfTest(self) -> Result<TpmIncrementalSelfTestResponse, 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 SelfTest(self) -> Result<TpmSelfTestResponse, Self>
pub fn SelfTest(self) -> Result<TpmSelfTestResponse, 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 Startup(self) -> Result<TpmStartupResponse, Self>
pub fn Startup(self) -> Result<TpmStartupResponse, 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 Shutdown(self) -> Result<TpmShutdownResponse, Self>
pub fn Shutdown(self) -> Result<TpmShutdownResponse, 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 StirRandom(self) -> Result<TpmStirRandomResponse, Self>
pub fn StirRandom(self) -> Result<TpmStirRandomResponse, 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 ActivateCredential(self) -> Result<TpmActivateCredentialResponse, Self>
pub fn ActivateCredential(self) -> Result<TpmActivateCredentialResponse, 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 Certify(self) -> Result<TpmCertifyResponse, Self>
pub fn Certify(self) -> Result<TpmCertifyResponse, 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 PolicyNv(self) -> Result<TpmPolicyNvResponse, Self>
pub fn PolicyNv(self) -> Result<TpmPolicyNvResponse, 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 CertifyCreation(self) -> Result<TpmCertifyCreationResponse, Self>
pub fn CertifyCreation(self) -> Result<TpmCertifyCreationResponse, 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 Duplicate(self) -> Result<TpmDuplicateResponse, Self>
pub fn Duplicate(self) -> Result<TpmDuplicateResponse, 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 GetTime(self) -> Result<TpmGetTimeResponse, Self>
pub fn GetTime(self) -> Result<TpmGetTimeResponse, 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 GetSessionAuditDigest(
self,
) -> Result<TpmGetSessionAuditDigestResponse, Self>
pub fn GetSessionAuditDigest( self, ) -> Result<TpmGetSessionAuditDigestResponse, 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 NvRead(self) -> Result<TpmNvReadResponse, Self>
pub fn NvRead(self) -> Result<TpmNvReadResponse, 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 NvReadLock(self) -> Result<TpmNvReadLockResponse, Self>
pub fn NvReadLock(self) -> Result<TpmNvReadLockResponse, 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 Rewrap(self) -> Result<TpmRewrapResponse, Self>
pub fn Rewrap(self) -> Result<TpmRewrapResponse, 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 EcdhZGen(self) -> Result<TpmEcdhZGenResponse, Self>
pub fn EcdhZGen(self) -> Result<TpmEcdhZGenResponse, 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 Hmac(self) -> Result<TpmHmacResponse, Self>
pub fn Hmac(self) -> Result<TpmHmacResponse, 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 Quote(self) -> Result<TpmQuoteResponse, Self>
pub fn Quote(self) -> Result<TpmQuoteResponse, 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 RsaDecrypt(self) -> Result<TpmRsaDecryptResponse, Self>
pub fn RsaDecrypt(self) -> Result<TpmRsaDecryptResponse, 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 HmacStart(self) -> Result<TpmHmacStartResponse, Self>
pub fn HmacStart(self) -> Result<TpmHmacStartResponse, 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 SequenceUpdate(self) -> Result<TpmSequenceUpdateResponse, Self>
pub fn SequenceUpdate(self) -> Result<TpmSequenceUpdateResponse, 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 Sign(self) -> Result<TpmSignResponse, Self>
pub fn Sign(self) -> Result<TpmSignResponse, 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 PolicySigned(self) -> Result<TpmPolicySignedResponse, Self>
pub fn PolicySigned(self) -> Result<TpmPolicySignedResponse, 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 EcdhKeyGen(self) -> Result<TpmEcdhKeyGenResponse, Self>
pub fn EcdhKeyGen(self) -> Result<TpmEcdhKeyGenResponse, 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 EncryptDecrypt(self) -> Result<TpmEncryptDecryptResponse, Self>
pub fn EncryptDecrypt(self) -> Result<TpmEncryptDecryptResponse, 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 LoadExternal(self) -> Result<TpmLoadExternalResponse, Self>
pub fn LoadExternal(self) -> Result<TpmLoadExternalResponse, 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 MakeCredential(self) -> Result<TpmMakeCredentialResponse, Self>
pub fn MakeCredential(self) -> Result<TpmMakeCredentialResponse, 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 NvReadPublic(self) -> Result<TpmNvReadPublicResponse, Self>
pub fn NvReadPublic(self) -> Result<TpmNvReadPublicResponse, 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 PolicyAuthorize(self) -> Result<TpmPolicyAuthorizeResponse, Self>
pub fn PolicyAuthorize(self) -> Result<TpmPolicyAuthorizeResponse, 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 PolicyCounterTimer(self) -> Result<TpmPolicyCounterTimerResponse, Self>
pub fn PolicyCounterTimer(self) -> Result<TpmPolicyCounterTimerResponse, 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 PolicyCpHash(self) -> Result<TpmPolicyCpHashResponse, Self>
pub fn PolicyCpHash(self) -> Result<TpmPolicyCpHashResponse, 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 PolicyLocality(self) -> Result<TpmPolicyLocalityResponse, Self>
pub fn PolicyLocality(self) -> Result<TpmPolicyLocalityResponse, 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 PolicyNameHash(self) -> Result<TpmPolicyNameHashResponse, Self>
pub fn PolicyNameHash(self) -> Result<TpmPolicyNameHashResponse, 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 PolicyTicket(self) -> Result<TpmPolicyTicketResponse, Self>
pub fn PolicyTicket(self) -> Result<TpmPolicyTicketResponse, 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 RsaEncrypt(self) -> Result<TpmRsaEncryptResponse, Self>
pub fn RsaEncrypt(self) -> Result<TpmRsaEncryptResponse, 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 VerifySignature(self) -> Result<TpmVerifySignatureResponse, Self>
pub fn VerifySignature(self) -> Result<TpmVerifySignatureResponse, 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 EccParameters(self) -> Result<TpmEccParametersResponse, Self>
pub fn EccParameters(self) -> Result<TpmEccParametersResponse, 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 FirmwareRead(self) -> Result<TpmFirmwareReadResponse, Self>
pub fn FirmwareRead(self) -> Result<TpmFirmwareReadResponse, 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 GetRandom(self) -> Result<TpmGetRandomResponse, Self>
pub fn GetRandom(self) -> Result<TpmGetRandomResponse, 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 GetTestResult(self) -> Result<TpmGetTestResultResponse, Self>
pub fn GetTestResult(self) -> Result<TpmGetTestResultResponse, 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 ReadClock(self) -> Result<TpmReadClockResponse, Self>
pub fn ReadClock(self) -> Result<TpmReadClockResponse, 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 PcrExtend(self) -> Result<TpmPcrExtendResponse, Self>
pub fn PcrExtend(self) -> Result<TpmPcrExtendResponse, 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 PcrSetAuthValue(self) -> Result<TpmPcrSetAuthValueResponse, Self>
pub fn PcrSetAuthValue(self) -> Result<TpmPcrSetAuthValueResponse, 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 NvCertify(self) -> Result<TpmNvCertifyResponse, Self>
pub fn NvCertify(self) -> Result<TpmNvCertifyResponse, 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 EventSequenceComplete(
self,
) -> Result<TpmEventSequenceCompleteResponse, Self>
pub fn EventSequenceComplete( self, ) -> Result<TpmEventSequenceCompleteResponse, 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 HashSequenceStart(self) -> Result<TpmHashSequenceStartResponse, Self>
pub fn HashSequenceStart(self) -> Result<TpmHashSequenceStartResponse, 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 PolicyPhysicalPresence(
self,
) -> Result<TpmPolicyPhysicalPresenceResponse, Self>
pub fn PolicyPhysicalPresence( self, ) -> Result<TpmPolicyPhysicalPresenceResponse, 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 PolicyDuplicationSelect(
self,
) -> Result<TpmPolicyDuplicationSelectResponse, Self>
pub fn PolicyDuplicationSelect( self, ) -> Result<TpmPolicyDuplicationSelectResponse, 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 TestParms(self) -> Result<TpmTestParmsResponse, Self>
pub fn TestParms(self) -> Result<TpmTestParmsResponse, 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 Commit(self) -> Result<TpmCommitResponse, Self>
pub fn Commit(self) -> Result<TpmCommitResponse, 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 ZGen2Phase(self) -> Result<TpmZGen2PhaseResponse, Self>
pub fn ZGen2Phase(self) -> Result<TpmZGen2PhaseResponse, 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 EcEphemeral(self) -> Result<TpmEcEphemeralResponse, Self>
pub fn EcEphemeral(self) -> Result<TpmEcEphemeralResponse, 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 PolicyNvWritten(self) -> Result<TpmPolicyNvWrittenResponse, Self>
pub fn PolicyNvWritten(self) -> Result<TpmPolicyNvWrittenResponse, 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 PolicyTemplate(self) -> Result<TpmPolicyTemplateResponse, Self>
pub fn PolicyTemplate(self) -> Result<TpmPolicyTemplateResponse, 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 CreateLoaded(self) -> Result<TpmCreateLoadedResponse, Self>
pub fn CreateLoaded(self) -> Result<TpmCreateLoadedResponse, 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 PolicyAuthorizeNv(self) -> Result<TpmPolicyAuthorizeNvResponse, Self>
pub fn PolicyAuthorizeNv(self) -> Result<TpmPolicyAuthorizeNvResponse, 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 EncryptDecrypt2(self) -> Result<TpmEncryptDecrypt2Response, Self>
pub fn EncryptDecrypt2(self) -> Result<TpmEncryptDecrypt2Response, 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 AcGetCapability(self) -> Result<TpmAcGetCapabilityResponse, Self>
pub fn AcGetCapability(self) -> Result<TpmAcGetCapabilityResponse, 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 AcSend(self) -> Result<TpmAcSendResponse, Self>
pub fn AcSend(self) -> Result<TpmAcSendResponse, 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 PolicyAcSendSelect(self) -> Result<TpmPolicyAcSendSelectResponse, Self>
pub fn PolicyAcSendSelect(self) -> Result<TpmPolicyAcSendSelectResponse, 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 ActSetTimeout(self) -> Result<TpmActSetTimeoutResponse, Self>
pub fn ActSetTimeout(self) -> Result<TpmActSetTimeoutResponse, 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 EccEncrypt(self) -> Result<TpmEccEncryptResponse, Self>
pub fn EccEncrypt(self) -> Result<TpmEccEncryptResponse, 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 EccDecrypt(self) -> Result<TpmEccDecryptResponse, Self>
pub fn EccDecrypt(self) -> Result<TpmEccDecryptResponse, 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 PolicyCapability(self) -> Result<TpmPolicyCapabilityResponse, Self>
pub fn PolicyCapability(self) -> Result<TpmPolicyCapabilityResponse, 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 PolicyParameters(self) -> Result<TpmPolicyParametersResponse, Self>
pub fn PolicyParameters(self) -> Result<TpmPolicyParametersResponse, 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 NvDefineSpace2(self) -> Result<TpmNvDefineSpace2Response, Self>
pub fn NvDefineSpace2(self) -> Result<TpmNvDefineSpace2Response, 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 NvReadPublic2(self) -> Result<TpmNvReadPublic2Response, Self>
pub fn NvReadPublic2(self) -> Result<TpmNvReadPublic2Response, 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 ReadOnlyControl(self) -> Result<TpmReadOnlyControlResponse, Self>
pub fn ReadOnlyControl(self) -> Result<TpmReadOnlyControlResponse, 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 PolicyTransportSpdm(self) -> Result<TpmPolicyTransportSpdmResponse, Self>
pub fn PolicyTransportSpdm(self) -> Result<TpmPolicyTransportSpdmResponse, 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