pub enum TpmCommandBody {
Show 123 variants
    NvUndefineSpaceSpecial(TpmNvUndefineSpaceSpecialCommand),
    EvictControl(TpmEvictControlCommand),
    HierarchyControl(TpmHierarchyControlCommand),
    NvUndefineSpace(TpmNvUndefineSpaceCommand),
    ChangeEps(TpmChangeEpsCommand),
    ChangePps(TpmChangePpsCommand),
    Clear(TpmClearCommand),
    ClearControl(TpmClearControlCommand),
    ClockSet(TpmClockSetCommand),
    HierarchyChangeAuth(TpmHierarchyChangeAuthCommand),
    NvDefineSpace(TpmNvDefineSpaceCommand),
    PcrAllocate(TpmPcrAllocateCommand),
    PcrSetAuthPolicy(TpmPcrSetAuthPolicyCommand),
    PpCommands(TpmPpCommandsCommand),
    SetPrimaryPolicy(TpmSetPrimaryPolicyCommand),
    FieldUpgradeStart(TpmFieldUpgradeStartCommand),
    ClockRateAdjust(TpmClockRateAdjustCommand),
    CreatePrimary(TpmCreatePrimaryCommand),
    NvGlobalWriteLock(TpmNvGlobalWriteLockCommand),
    GetCommandAuditDigest(TpmGetCommandAuditDigestCommand),
    NvIncrement(TpmNvIncrementCommand),
    NvSetBits(TpmNvSetBitsCommand),
    NvExtend(TpmNvExtendCommand),
    NvWrite(TpmNvWriteCommand),
    NvWriteLock(TpmNvWriteLockCommand),
    DictionaryAttackLockReset(TpmDictionaryAttackLockResetCommand),
    DictionaryAttackParameters(TpmDictionaryAttackParametersCommand),
    NvChangeAuth(TpmNvChangeAuthCommand),
    PcrEvent(TpmPcrEventCommand),
    PcrReset(TpmPcrResetCommand),
    SequenceComplete(TpmSequenceCompleteCommand),
    SetAlgorithmSet(TpmSetAlgorithmSetCommand),
    SetCommandCodeAuditStatus(TpmSetCommandCodeAuditStatusCommand),
    FieldUpgradeData(TpmFieldUpgradeDataCommand),
    IncrementalSelfTest(TpmIncrementalSelfTestCommand),
    SelfTest(TpmSelfTestCommand),
    Startup(TpmStartupCommand),
    Shutdown(TpmShutdownCommand),
    StirRandom(TpmStirRandomCommand),
    ActivateCredential(TpmActivateCredentialCommand),
    Certify(TpmCertifyCommand),
    PolicyNv(TpmPolicyNvCommand),
    CertifyCreation(TpmCertifyCreationCommand),
    Duplicate(TpmDuplicateCommand),
    GetTime(TpmGetTimeCommand),
    GetSessionAuditDigest(TpmGetSessionAuditDigestCommand),
    NvRead(TpmNvReadCommand),
    NvReadLock(TpmNvReadLockCommand),
    ObjectChangeAuth(TpmObjectChangeAuthCommand),
    PolicySecret(TpmPolicySecretCommand),
    Rewrap(TpmRewrapCommand),
    Create(TpmCreateCommand),
    EcdhZGen(TpmEcdhZGenCommand),
    Hmac(TpmHmacCommand),
    Import(TpmImportCommand),
    Load(TpmLoadCommand),
    Quote(TpmQuoteCommand),
    RsaDecrypt(TpmRsaDecryptCommand),
    HmacStart(TpmHmacStartCommand),
    SequenceUpdate(TpmSequenceUpdateCommand),
    Sign(TpmSignCommand),
    Unseal(TpmUnsealCommand),
    PolicySigned(TpmPolicySignedCommand),
    ContextLoad(TpmContextLoadCommand),
    ContextSave(TpmContextSaveCommand),
    EcdhKeyGen(TpmEcdhKeyGenCommand),
    EncryptDecrypt(TpmEncryptDecryptCommand),
    FlushContext(TpmFlushContextCommand),
    LoadExternal(TpmLoadExternalCommand),
    MakeCredential(TpmMakeCredentialCommand),
    NvReadPublic(TpmNvReadPublicCommand),
    PolicyAuthorize(TpmPolicyAuthorizeCommand),
    PolicyAuthValue(TpmPolicyAuthValueCommand),
    PolicyCommandCode(TpmPolicyCommandCodeCommand),
    PolicyCounterTimer(TpmPolicyCounterTimerCommand),
    PolicyCpHash(TpmPolicyCpHashCommand),
    PolicyLocality(TpmPolicyLocalityCommand),
    PolicyNameHash(TpmPolicyNameHashCommand),
    PolicyOr(TpmPolicyOrCommand),
    PolicyTicket(TpmPolicyTicketCommand),
    ReadPublic(TpmReadPublicCommand),
    RsaEncrypt(TpmRsaEncryptCommand),
    StartAuthSession(TpmStartAuthSessionCommand),
    VerifySignature(TpmVerifySignatureCommand),
    EccParameters(TpmEccParametersCommand),
    FirmwareRead(TpmFirmwareReadCommand),
    GetCapability(TpmGetCapabilityCommand),
    GetRandom(TpmGetRandomCommand),
    GetTestResult(TpmGetTestResultCommand),
    Hash(TpmHashCommand),
    PcrRead(TpmPcrReadCommand),
    PolicyPcr(TpmPolicyPcrCommand),
    PolicyRestart(TpmPolicyRestartCommand),
    ReadClock(TpmReadClockCommand),
    PcrExtend(TpmPcrExtendCommand),
    PcrSetAuthValue(TpmPcrSetAuthValueCommand),
    NvCertify(TpmNvCertifyCommand),
    EventSequenceComplete(TpmEventSequenceCompleteCommand),
    HashSequenceStart(TpmHashSequenceStartCommand),
    PolicyPhysicalPresence(TpmPolicyPhysicalPresenceCommand),
    PolicyDuplicationSelect(TpmPolicyDuplicationSelectCommand),
    PolicyGetDigest(TpmPolicyGetDigestCommand),
    TestParms(TpmTestParmsCommand),
    Commit(TpmCommitCommand),
    PolicyPassword(TpmPolicyPasswordCommand),
    ZGen2Phase(TpmZGen2PhaseCommand),
    EcEphemeral(TpmEcEphemeralCommand),
    PolicyNvWritten(TpmPolicyNvWrittenCommand),
    PolicyTemplate(TpmPolicyTemplateCommand),
    CreateLoaded(TpmCreateLoadedCommand),
    PolicyAuthorizeNv(TpmPolicyAuthorizeNvCommand),
    EncryptDecrypt2(TpmEncryptDecrypt2Command),
    AcGetCapability(TpmAcGetCapabilityCommand),
    AcSend(TpmAcSendCommand),
    PolicyAcSendSelect(TpmPolicyAcSendSelectCommand),
    ActSetTimeout(TpmActSetTimeoutCommand),
    PolicyCapability(TpmPolicyCapabilityCommand),
    PolicyParameters(TpmPolicyParametersCommand),
    NvDefineSpace2(TpmNvDefineSpace2Command),
    NvReadPublic2(TpmNvReadPublic2Command),
    ReadOnlyControl(TpmReadOnlyControlCommand),
    PolicyTransportSpdm(TpmPolicyTransportSpdmCommand),
    VendorTcgTest(TpmVendorTcgTestCommand),
}Expand description
A TPM command
Variants§
NvUndefineSpaceSpecial(TpmNvUndefineSpaceSpecialCommand)
EvictControl(TpmEvictControlCommand)
HierarchyControl(TpmHierarchyControlCommand)
NvUndefineSpace(TpmNvUndefineSpaceCommand)
ChangeEps(TpmChangeEpsCommand)
ChangePps(TpmChangePpsCommand)
Clear(TpmClearCommand)
ClearControl(TpmClearControlCommand)
ClockSet(TpmClockSetCommand)
HierarchyChangeAuth(TpmHierarchyChangeAuthCommand)
NvDefineSpace(TpmNvDefineSpaceCommand)
PcrAllocate(TpmPcrAllocateCommand)
PcrSetAuthPolicy(TpmPcrSetAuthPolicyCommand)
PpCommands(TpmPpCommandsCommand)
SetPrimaryPolicy(TpmSetPrimaryPolicyCommand)
FieldUpgradeStart(TpmFieldUpgradeStartCommand)
ClockRateAdjust(TpmClockRateAdjustCommand)
CreatePrimary(TpmCreatePrimaryCommand)
NvGlobalWriteLock(TpmNvGlobalWriteLockCommand)
GetCommandAuditDigest(TpmGetCommandAuditDigestCommand)
NvIncrement(TpmNvIncrementCommand)
NvSetBits(TpmNvSetBitsCommand)
NvExtend(TpmNvExtendCommand)
NvWrite(TpmNvWriteCommand)
NvWriteLock(TpmNvWriteLockCommand)
DictionaryAttackLockReset(TpmDictionaryAttackLockResetCommand)
DictionaryAttackParameters(TpmDictionaryAttackParametersCommand)
NvChangeAuth(TpmNvChangeAuthCommand)
PcrEvent(TpmPcrEventCommand)
PcrReset(TpmPcrResetCommand)
SequenceComplete(TpmSequenceCompleteCommand)
SetAlgorithmSet(TpmSetAlgorithmSetCommand)
SetCommandCodeAuditStatus(TpmSetCommandCodeAuditStatusCommand)
FieldUpgradeData(TpmFieldUpgradeDataCommand)
IncrementalSelfTest(TpmIncrementalSelfTestCommand)
SelfTest(TpmSelfTestCommand)
Startup(TpmStartupCommand)
Shutdown(TpmShutdownCommand)
StirRandom(TpmStirRandomCommand)
ActivateCredential(TpmActivateCredentialCommand)
Certify(TpmCertifyCommand)
PolicyNv(TpmPolicyNvCommand)
CertifyCreation(TpmCertifyCreationCommand)
Duplicate(TpmDuplicateCommand)
GetTime(TpmGetTimeCommand)
GetSessionAuditDigest(TpmGetSessionAuditDigestCommand)
NvRead(TpmNvReadCommand)
NvReadLock(TpmNvReadLockCommand)
ObjectChangeAuth(TpmObjectChangeAuthCommand)
PolicySecret(TpmPolicySecretCommand)
Rewrap(TpmRewrapCommand)
Create(TpmCreateCommand)
EcdhZGen(TpmEcdhZGenCommand)
Hmac(TpmHmacCommand)
Import(TpmImportCommand)
Load(TpmLoadCommand)
Quote(TpmQuoteCommand)
RsaDecrypt(TpmRsaDecryptCommand)
HmacStart(TpmHmacStartCommand)
SequenceUpdate(TpmSequenceUpdateCommand)
Sign(TpmSignCommand)
Unseal(TpmUnsealCommand)
PolicySigned(TpmPolicySignedCommand)
ContextLoad(TpmContextLoadCommand)
ContextSave(TpmContextSaveCommand)
EcdhKeyGen(TpmEcdhKeyGenCommand)
EncryptDecrypt(TpmEncryptDecryptCommand)
FlushContext(TpmFlushContextCommand)
LoadExternal(TpmLoadExternalCommand)
MakeCredential(TpmMakeCredentialCommand)
NvReadPublic(TpmNvReadPublicCommand)
PolicyAuthorize(TpmPolicyAuthorizeCommand)
PolicyAuthValue(TpmPolicyAuthValueCommand)
PolicyCommandCode(TpmPolicyCommandCodeCommand)
PolicyCounterTimer(TpmPolicyCounterTimerCommand)
PolicyCpHash(TpmPolicyCpHashCommand)
PolicyLocality(TpmPolicyLocalityCommand)
PolicyNameHash(TpmPolicyNameHashCommand)
PolicyOr(TpmPolicyOrCommand)
PolicyTicket(TpmPolicyTicketCommand)
ReadPublic(TpmReadPublicCommand)
RsaEncrypt(TpmRsaEncryptCommand)
StartAuthSession(TpmStartAuthSessionCommand)
VerifySignature(TpmVerifySignatureCommand)
EccParameters(TpmEccParametersCommand)
FirmwareRead(TpmFirmwareReadCommand)
GetCapability(TpmGetCapabilityCommand)
GetRandom(TpmGetRandomCommand)
GetTestResult(TpmGetTestResultCommand)
Hash(TpmHashCommand)
PcrRead(TpmPcrReadCommand)
PolicyPcr(TpmPolicyPcrCommand)
PolicyRestart(TpmPolicyRestartCommand)
ReadClock(TpmReadClockCommand)
PcrExtend(TpmPcrExtendCommand)
PcrSetAuthValue(TpmPcrSetAuthValueCommand)
NvCertify(TpmNvCertifyCommand)
EventSequenceComplete(TpmEventSequenceCompleteCommand)
HashSequenceStart(TpmHashSequenceStartCommand)
PolicyPhysicalPresence(TpmPolicyPhysicalPresenceCommand)
PolicyDuplicationSelect(TpmPolicyDuplicationSelectCommand)
PolicyGetDigest(TpmPolicyGetDigestCommand)
TestParms(TpmTestParmsCommand)
Commit(TpmCommitCommand)
PolicyPassword(TpmPolicyPasswordCommand)
ZGen2Phase(TpmZGen2PhaseCommand)
EcEphemeral(TpmEcEphemeralCommand)
PolicyNvWritten(TpmPolicyNvWrittenCommand)
PolicyTemplate(TpmPolicyTemplateCommand)
CreateLoaded(TpmCreateLoadedCommand)
PolicyAuthorizeNv(TpmPolicyAuthorizeNvCommand)
EncryptDecrypt2(TpmEncryptDecrypt2Command)
AcGetCapability(TpmAcGetCapabilityCommand)
AcSend(TpmAcSendCommand)
PolicyAcSendSelect(TpmPolicyAcSendSelectCommand)
ActSetTimeout(TpmActSetTimeoutCommand)
PolicyCapability(TpmPolicyCapabilityCommand)
PolicyParameters(TpmPolicyParametersCommand)
NvDefineSpace2(TpmNvDefineSpace2Command)
NvReadPublic2(TpmNvReadPublic2Command)
ReadOnlyControl(TpmReadOnlyControlCommand)
PolicyTransportSpdm(TpmPolicyTransportSpdmCommand)
VendorTcgTest(TpmVendorTcgTestCommand)
Trait Implementations§
Source§impl Clone for TpmCommandBody
 
impl Clone for TpmCommandBody
Source§fn clone(&self) -> TpmCommandBody
 
fn clone(&self) -> TpmCommandBody
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for TpmCommandBody
 
impl Debug for TpmCommandBody
Source§impl PartialEq for TpmCommandBody
 
impl PartialEq for TpmCommandBody
impl Eq for TpmCommandBody
impl StructuralPartialEq for TpmCommandBody
Auto Trait Implementations§
impl Freeze for TpmCommandBody
impl RefUnwindSafe for TpmCommandBody
impl Send for TpmCommandBody
impl Sync for TpmCommandBody
impl Unpin for TpmCommandBody
impl UnwindSafe for TpmCommandBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more