TpmResponseBody

Enum TpmResponseBody 

Source
pub enum TpmResponseBody {
Show 123 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), 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)

§

PolicyCapability(TpmPolicyCapabilityResponse)

§

PolicyParameters(TpmPolicyParametersResponse)

§

NvDefineSpace2(TpmNvDefineSpace2Response)

§

NvReadPublic2(TpmNvReadPublic2Response)

§

ReadOnlyControl(TpmReadOnlyControlResponse)

§

PolicyTransportSpdm(TpmPolicyTransportSpdmResponse)

§

VendorTcgTest(TpmVendorTcgTestResponse)

Implementations§

Source§

impl TpmResponseBody

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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

Source§

fn clone(&self) -> TpmResponseBody

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TpmResponseBody

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for TpmResponseBody

Source§

fn eq(&self, other: &TpmResponseBody) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for TpmResponseBody

Source§

impl StructuralPartialEq for TpmResponseBody

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.