TpmSized

Trait TpmSized 

Source
pub trait TpmSized {
    const SIZE: usize;

    // Required method
    fn len(&self) -> usize;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}
Expand description

Provides two ways to determine the size of an oBject: a compile-time maximum and a runtime exact size.

Required Associated Constants§

Source

const SIZE: usize

The estimated size of the object in its serialized form evaluated at compile-time (always larger than the realized length).

Required Methods§

Source

fn len(&self) -> usize

Returns the exact serialized size of the object.

Provided Methods§

Source

fn is_empty(&self) -> bool

Returns true if the object has a serialized length of zero.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl TpmSized for TpmAlgId

Source§

impl TpmSized for TpmAt

Source§

impl TpmSized for TpmCap

Source§

impl TpmSized for TpmCc

Source§

impl TpmSized for TpmClockAdjust

Source§

impl TpmSized for TpmEccCurve

Source§

impl TpmSized for TpmEo

Source§

impl TpmSized for TpmHt

Source§

impl TpmSized for TpmPt

Source§

impl TpmSized for TpmRc

Source§

impl TpmSized for TpmRcBase

Source§

impl TpmSized for TpmRh

Source§

impl TpmSized for TpmSe

Source§

impl TpmSized for TpmSt

Source§

impl TpmSized for TpmSu

Source§

impl TpmSized for TpmiEccKeyExchange

Source§

impl TpmSized for TpmuAsymScheme

Source§

const SIZE: usize = TPM_MAX_COMMAND_SIZE

Source§

impl TpmSized for TpmuAttest

Source§

const SIZE: usize = TPM_MAX_COMMAND_SIZE

Source§

impl TpmSized for TpmuCapabilities

Source§

const SIZE: usize = TPM_MAX_COMMAND_SIZE

Source§

impl TpmSized for TpmuHa

Source§

const SIZE: usize = MAX_DIGEST_SIZE

Source§

impl TpmSized for TpmuKdfScheme

Source§

const SIZE: usize = TPM_MAX_COMMAND_SIZE

Source§

impl TpmSized for TpmuKeyedhashScheme

Source§

const SIZE: usize = TPM_MAX_COMMAND_SIZE

Source§

impl TpmSized for TpmuNvPublic2

Source§

const SIZE: usize = TPM_MAX_COMMAND_SIZE

Source§

impl TpmSized for TpmuPublicId

Source§

const SIZE: usize = TPM_MAX_COMMAND_SIZE

Source§

impl TpmSized for TpmuPublicParms

Source§

const SIZE: usize = TPM_MAX_COMMAND_SIZE

Source§

impl TpmSized for TpmuSensitiveComposite

Source§

const SIZE: usize = TPM_MAX_COMMAND_SIZE

Source§

impl TpmSized for TpmuSigScheme

Source§

const SIZE: usize = TPM_MAX_COMMAND_SIZE

Source§

impl TpmSized for TpmuSignature

Source§

const SIZE: usize = TPM_MAX_COMMAND_SIZE

Source§

impl TpmSized for TpmuSymKeyBits

Source§

impl TpmSized for TpmuSymMode

Source§

impl TpmSized for TpmCommand

Source§

const SIZE: usize = crate::constant::TPM_MAX_COMMAND_SIZE

Source§

impl TpmSized for TpmResponse

Source§

const SIZE: usize = crate::constant::TPM_MAX_COMMAND_SIZE

Source§

impl TpmSized for TpmInt8

Source§

impl TpmSized for TpmInt32

Source§

impl TpmSized for TpmUint8

Source§

impl TpmSized for TpmUint16

Source§

impl TpmSized for TpmUint32

Source§

impl TpmSized for TpmUint64

Source§

impl TpmSized for Tpm2bAttest

Source§

impl TpmSized for Tpm2bCreationData

Source§

impl TpmSized for Tpm2bEccPoint

Source§

impl TpmSized for Tpm2bIdObject

Source§

impl TpmSized for Tpm2bNvPublic2

Source§

impl TpmSized for Tpm2bNvPublic

Source§

impl TpmSized for Tpm2bPublic

Source§

impl TpmSized for Tpm2bSensitive

Source§

impl TpmSized for Tpm2bSensitiveCreate

Source§

impl TpmSized for TpmaAlgorithm

Source§

impl TpmSized for TpmaCc

Source§

impl TpmSized for TpmaLocality

Source§

impl TpmSized for TpmaNv

Source§

impl TpmSized for TpmaNvExp

Source§

impl TpmSized for TpmaObject

Source§

impl TpmSized for TpmaSession

Source§

impl TpmSized for TpmiYesNo

Source§

impl TpmSized for TpmsAcOutput

Source§

impl TpmSized for TpmsAlgProperty

Source§

impl TpmSized for TpmsAlgorithmDetailEcc

Source§

impl TpmSized for TpmsAttest

Source§

impl TpmSized for TpmsAuthCommand

Source§

impl TpmSized for TpmsAuthResponse

Source§

impl TpmSized for TpmsCapabilityData

Source§

impl TpmSized for TpmsCertifyInfo

Source§

impl TpmSized for TpmsClockInfo

Source§

impl TpmSized for TpmsCommandAuditInfo

Source§

impl TpmSized for TpmsContext

Source§

impl TpmSized for TpmsCreationData

Source§

impl TpmSized for TpmsCreationInfo

Source§

impl TpmSized for TpmsEccParms

Source§

impl TpmSized for TpmsEccPoint

Source§

impl TpmSized for TpmsEmpty

Source§

const SIZE: usize = 0

Source§

impl TpmSized for TpmsIdObject

Source§

impl TpmSized for TpmsKeyedhashParms

Source§

impl TpmSized for TpmsNvCertifyInfo

Source§

impl TpmSized for TpmsNvDigestCertifyInfo

Source§

impl TpmSized for TpmsNvPublic

Source§

impl TpmSized for TpmsNvPublicExpAttr

Source§

impl TpmSized for TpmsPcrSelect

Source§

impl TpmSized for TpmsPcrSelection

Source§

impl TpmSized for TpmsQuoteInfo

Source§

impl TpmSized for TpmsRsaParms

Source§

impl TpmSized for TpmsSchemeHash

Source§

impl TpmSized for TpmsSchemeXor

Source§

impl TpmSized for TpmsSensitiveCreate

Source§

impl TpmSized for TpmsSessionAuditInfo

Source§

impl TpmSized for TpmsSignatureEcc

Source§

impl TpmSized for TpmsSignatureRsa

Source§

impl TpmSized for TpmsSymcipherParms

Source§

impl TpmSized for TpmsTaggedProperty

Source§

impl TpmSized for TpmsTimeAttestInfo

Source§

impl TpmSized for TpmsTimeInfo

Source§

impl TpmSized for TpmtEccScheme

Source§

impl TpmSized for TpmtHa

Source§

impl TpmSized for TpmtKdfScheme

Source§

impl TpmSized for TpmtKeyedhashScheme

Source§

impl TpmSized for TpmtNvPublic2

Source§

impl TpmSized for TpmtPublic

Source§

const SIZE: usize = TPM_MAX_COMMAND_SIZE

Source§

impl TpmSized for TpmtPublicParms

Source§

impl TpmSized for TpmtRsaDecrypt

Source§

impl TpmSized for TpmtRsaScheme

Source§

impl TpmSized for TpmtSensitive

Source§

impl TpmSized for TpmtSigScheme

Source§

impl TpmSized for TpmtSignature

Source§

impl TpmSized for TpmtSymDef

Source§

impl TpmSized for TpmtTkAuth

Source§

impl TpmSized for TpmtTkCreation

Source§

impl TpmSized for TpmtTkHashcheck

Source§

impl TpmSized for TpmtTkVerified

Source§

impl TpmSized for TpmAcGetCapabilityCommand

Source§

impl TpmSized for TpmAcGetCapabilityResponse

Source§

impl TpmSized for TpmAcSendCommand

Source§

impl TpmSized for TpmAcSendResponse

Source§

impl TpmSized for TpmActSetTimeoutCommand

Source§

impl TpmSized for TpmActSetTimeoutResponse

Source§

impl TpmSized for TpmActivateCredentialCommand

Source§

impl TpmSized for TpmActivateCredentialResponse

Source§

impl TpmSized for TpmCertifyCommand

Source§

impl TpmSized for TpmCertifyCreationCommand

Source§

impl TpmSized for TpmCertifyCreationResponse

Source§

impl TpmSized for TpmCertifyResponse

Source§

impl TpmSized for TpmChangeEpsCommand

Source§

impl TpmSized for TpmChangeEpsResponse

Source§

impl TpmSized for TpmChangePpsCommand

Source§

impl TpmSized for TpmChangePpsResponse

Source§

impl TpmSized for TpmClearCommand

Source§

impl TpmSized for TpmClearControlCommand

Source§

impl TpmSized for TpmClearControlResponse

Source§

impl TpmSized for TpmClearResponse

Source§

impl TpmSized for TpmClockRateAdjustCommand

Source§

impl TpmSized for TpmClockRateAdjustResponse

Source§

impl TpmSized for TpmClockSetCommand

Source§

impl TpmSized for TpmClockSetResponse

Source§

impl TpmSized for TpmCommitCommand

Source§

impl TpmSized for TpmCommitResponse

Source§

impl TpmSized for TpmContextLoadCommand

Source§

impl TpmSized for TpmContextLoadResponse

Source§

impl TpmSized for TpmContextSaveCommand

Source§

impl TpmSized for TpmContextSaveResponse

Source§

impl TpmSized for TpmCreateCommand

Source§

impl TpmSized for TpmCreateLoadedCommand

Source§

impl TpmSized for TpmCreateLoadedResponse

Source§

impl TpmSized for TpmCreatePrimaryCommand

Source§

impl TpmSized for TpmCreatePrimaryResponse

Source§

impl TpmSized for TpmCreateResponse

Source§

impl TpmSized for TpmDictionaryAttackLockResetCommand

Source§

impl TpmSized for TpmDictionaryAttackLockResetResponse

Source§

impl TpmSized for TpmDictionaryAttackParametersCommand

Source§

impl TpmSized for TpmDictionaryAttackParametersResponse

Source§

impl TpmSized for TpmDuplicateCommand

Source§

impl TpmSized for TpmDuplicateResponse

Source§

impl TpmSized for TpmEcEphemeralCommand

Source§

impl TpmSized for TpmEcEphemeralResponse

Source§

impl TpmSized for TpmEccDecryptCommand

Source§

impl TpmSized for TpmEccDecryptResponse

Source§

impl TpmSized for TpmEccEncryptCommand

Source§

impl TpmSized for TpmEccEncryptResponse

Source§

impl TpmSized for TpmEccParametersCommand

Source§

impl TpmSized for TpmEccParametersResponse

Source§

impl TpmSized for TpmEcdhKeyGenCommand

Source§

impl TpmSized for TpmEcdhKeyGenResponse

Source§

impl TpmSized for TpmEcdhZGenCommand

Source§

impl TpmSized for TpmEcdhZGenResponse

Source§

impl TpmSized for TpmEncryptDecrypt2Command

Source§

impl TpmSized for TpmEncryptDecrypt2Response

Source§

impl TpmSized for TpmEncryptDecryptCommand

Source§

impl TpmSized for TpmEncryptDecryptResponse

Source§

impl TpmSized for TpmEventSequenceCompleteCommand

Source§

impl TpmSized for TpmEventSequenceCompleteResponse

Source§

impl TpmSized for TpmEvictControlCommand

Source§

impl TpmSized for TpmEvictControlResponse

Source§

impl TpmSized for TpmFieldUpgradeDataCommand

Source§

impl TpmSized for TpmFieldUpgradeDataResponse

Source§

impl TpmSized for TpmFieldUpgradeStartCommand

Source§

impl TpmSized for TpmFieldUpgradeStartResponse

Source§

impl TpmSized for TpmFirmwareReadCommand

Source§

impl TpmSized for TpmFirmwareReadResponse

Source§

impl TpmSized for TpmFlushContextCommand

Source§

impl TpmSized for TpmFlushContextResponse

Source§

impl TpmSized for TpmGetCapabilityCommand

Source§

impl TpmSized for TpmGetCapabilityResponse

Source§

impl TpmSized for TpmGetCommandAuditDigestCommand

Source§

impl TpmSized for TpmGetCommandAuditDigestResponse

Source§

impl TpmSized for TpmGetRandomCommand

Source§

impl TpmSized for TpmGetRandomResponse

Source§

impl TpmSized for TpmGetSessionAuditDigestCommand

Source§

impl TpmSized for TpmGetSessionAuditDigestResponse

Source§

impl TpmSized for TpmGetTestResultCommand

Source§

impl TpmSized for TpmGetTestResultResponse

Source§

impl TpmSized for TpmGetTimeCommand

Source§

impl TpmSized for TpmGetTimeResponse

Source§

impl TpmSized for TpmHashCommand

Source§

impl TpmSized for TpmHashResponse

Source§

impl TpmSized for TpmHashSequenceStartCommand

Source§

impl TpmSized for TpmHashSequenceStartResponse

Source§

impl TpmSized for TpmHierarchyChangeAuthCommand

Source§

impl TpmSized for TpmHierarchyChangeAuthResponse

Source§

impl TpmSized for TpmHierarchyControlCommand

Source§

impl TpmSized for TpmHierarchyControlResponse

Source§

impl TpmSized for TpmHmacCommand

Source§

impl TpmSized for TpmHmacResponse

Source§

impl TpmSized for TpmHmacStartCommand

Source§

impl TpmSized for TpmHmacStartResponse

Source§

impl TpmSized for TpmImportCommand

Source§

impl TpmSized for TpmImportResponse

Source§

impl TpmSized for TpmIncrementalSelfTestCommand

Source§

impl TpmSized for TpmIncrementalSelfTestResponse

Source§

impl TpmSized for TpmLoadCommand

Source§

impl TpmSized for TpmLoadExternalCommand

Source§

impl TpmSized for TpmLoadExternalResponse

Source§

impl TpmSized for TpmLoadResponse

Source§

impl TpmSized for TpmMakeCredentialCommand

Source§

impl TpmSized for TpmMakeCredentialResponse

Source§

impl TpmSized for TpmNvCertifyCommand

Source§

impl TpmSized for TpmNvCertifyResponse

Source§

impl TpmSized for TpmNvChangeAuthCommand

Source§

impl TpmSized for TpmNvChangeAuthResponse

Source§

impl TpmSized for TpmNvDefineSpace2Command

Source§

impl TpmSized for TpmNvDefineSpace2Response

Source§

impl TpmSized for TpmNvDefineSpaceCommand

Source§

impl TpmSized for TpmNvDefineSpaceResponse

Source§

impl TpmSized for TpmNvExtendCommand

Source§

impl TpmSized for TpmNvExtendResponse

Source§

impl TpmSized for TpmNvGlobalWriteLockCommand

Source§

impl TpmSized for TpmNvGlobalWriteLockResponse

Source§

impl TpmSized for TpmNvIncrementCommand

Source§

impl TpmSized for TpmNvIncrementResponse

Source§

impl TpmSized for TpmNvReadCommand

Source§

impl TpmSized for TpmNvReadLockCommand

Source§

impl TpmSized for TpmNvReadLockResponse

Source§

impl TpmSized for TpmNvReadPublic2Command

Source§

impl TpmSized for TpmNvReadPublic2Response

Source§

impl TpmSized for TpmNvReadPublicCommand

Source§

impl TpmSized for TpmNvReadPublicResponse

Source§

impl TpmSized for TpmNvReadResponse

Source§

impl TpmSized for TpmNvSetBitsCommand

Source§

impl TpmSized for TpmNvSetBitsResponse

Source§

impl TpmSized for TpmNvUndefineSpaceCommand

Source§

impl TpmSized for TpmNvUndefineSpaceResponse

Source§

impl TpmSized for TpmNvUndefineSpaceSpecialCommand

Source§

impl TpmSized for TpmNvUndefineSpaceSpecialResponse

Source§

impl TpmSized for TpmNvWriteCommand

Source§

impl TpmSized for TpmNvWriteLockCommand

Source§

impl TpmSized for TpmNvWriteLockResponse

Source§

impl TpmSized for TpmNvWriteResponse

Source§

impl TpmSized for TpmObjectChangeAuthCommand

Source§

impl TpmSized for TpmObjectChangeAuthResponse

Source§

impl TpmSized for TpmPcrAllocateCommand

Source§

impl TpmSized for TpmPcrAllocateResponse

Source§

impl TpmSized for TpmPcrEventCommand

Source§

impl TpmSized for TpmPcrEventResponse

Source§

impl TpmSized for TpmPcrExtendCommand

Source§

impl TpmSized for TpmPcrExtendResponse

Source§

impl TpmSized for TpmPcrReadCommand

Source§

impl TpmSized for TpmPcrReadResponse

Source§

impl TpmSized for TpmPcrResetCommand

Source§

impl TpmSized for TpmPcrResetResponse

Source§

impl TpmSized for TpmPcrSetAuthPolicyCommand

Source§

impl TpmSized for TpmPcrSetAuthPolicyResponse

Source§

impl TpmSized for TpmPcrSetAuthValueCommand

Source§

impl TpmSized for TpmPcrSetAuthValueResponse

Source§

impl TpmSized for TpmPolicyAcSendSelectCommand

Source§

impl TpmSized for TpmPolicyAcSendSelectResponse

Source§

impl TpmSized for TpmPolicyAuthValueCommand

Source§

impl TpmSized for TpmPolicyAuthValueResponse

Source§

impl TpmSized for TpmPolicyAuthorizeCommand

Source§

impl TpmSized for TpmPolicyAuthorizeNvCommand

Source§

impl TpmSized for TpmPolicyAuthorizeNvResponse

Source§

impl TpmSized for TpmPolicyAuthorizeResponse

Source§

impl TpmSized for TpmPolicyCapabilityCommand

Source§

impl TpmSized for TpmPolicyCapabilityResponse

Source§

impl TpmSized for TpmPolicyCommandCodeCommand

Source§

impl TpmSized for TpmPolicyCommandCodeResponse

Source§

impl TpmSized for TpmPolicyCounterTimerCommand

Source§

impl TpmSized for TpmPolicyCounterTimerResponse

Source§

impl TpmSized for TpmPolicyCpHashCommand

Source§

impl TpmSized for TpmPolicyCpHashResponse

Source§

impl TpmSized for TpmPolicyDuplicationSelectCommand

Source§

impl TpmSized for TpmPolicyDuplicationSelectResponse

Source§

impl TpmSized for TpmPolicyGetDigestCommand

Source§

impl TpmSized for TpmPolicyGetDigestResponse

Source§

impl TpmSized for TpmPolicyLocalityCommand

Source§

impl TpmSized for TpmPolicyLocalityResponse

Source§

impl TpmSized for TpmPolicyNameHashCommand

Source§

impl TpmSized for TpmPolicyNameHashResponse

Source§

impl TpmSized for TpmPolicyNvCommand

Source§

impl TpmSized for TpmPolicyNvResponse

Source§

impl TpmSized for TpmPolicyNvWrittenCommand

Source§

impl TpmSized for TpmPolicyNvWrittenResponse

Source§

impl TpmSized for TpmPolicyOrCommand

Source§

impl TpmSized for TpmPolicyOrResponse

Source§

impl TpmSized for TpmPolicyParametersCommand

Source§

impl TpmSized for TpmPolicyParametersResponse

Source§

impl TpmSized for TpmPolicyPasswordCommand

Source§

impl TpmSized for TpmPolicyPasswordResponse

Source§

impl TpmSized for TpmPolicyPcrCommand

Source§

impl TpmSized for TpmPolicyPcrResponse

Source§

impl TpmSized for TpmPolicyPhysicalPresenceCommand

Source§

impl TpmSized for TpmPolicyPhysicalPresenceResponse

Source§

impl TpmSized for TpmPolicyRestartCommand

Source§

impl TpmSized for TpmPolicyRestartResponse

Source§

impl TpmSized for TpmPolicySecretCommand

Source§

impl TpmSized for TpmPolicySecretResponse

Source§

impl TpmSized for TpmPolicySignedCommand

Source§

impl TpmSized for TpmPolicySignedResponse

Source§

impl TpmSized for TpmPolicyTemplateCommand

Source§

impl TpmSized for TpmPolicyTemplateResponse

Source§

impl TpmSized for TpmPolicyTicketCommand

Source§

impl TpmSized for TpmPolicyTicketResponse

Source§

impl TpmSized for TpmPolicyTransportSpdmCommand

Source§

impl TpmSized for TpmPolicyTransportSpdmResponse

Source§

impl TpmSized for TpmPpCommandsCommand

Source§

impl TpmSized for TpmPpCommandsResponse

Source§

impl TpmSized for TpmQuoteCommand

Source§

impl TpmSized for TpmQuoteResponse

Source§

impl TpmSized for TpmReadClockCommand

Source§

impl TpmSized for TpmReadClockResponse

Source§

impl TpmSized for TpmReadOnlyControlCommand

Source§

impl TpmSized for TpmReadOnlyControlResponse

Source§

impl TpmSized for TpmReadPublicCommand

Source§

impl TpmSized for TpmReadPublicResponse

Source§

impl TpmSized for TpmRewrapCommand

Source§

impl TpmSized for TpmRewrapResponse

Source§

impl TpmSized for TpmRsaDecryptCommand

Source§

impl TpmSized for TpmRsaDecryptResponse

Source§

impl TpmSized for TpmRsaEncryptCommand

Source§

impl TpmSized for TpmRsaEncryptResponse

Source§

impl TpmSized for TpmSelfTestCommand

Source§

impl TpmSized for TpmSelfTestResponse

Source§

impl TpmSized for TpmSequenceCompleteCommand

Source§

impl TpmSized for TpmSequenceCompleteResponse

Source§

impl TpmSized for TpmSequenceUpdateCommand

Source§

impl TpmSized for TpmSequenceUpdateResponse

Source§

impl TpmSized for TpmSetAlgorithmSetCommand

Source§

impl TpmSized for TpmSetAlgorithmSetResponse

Source§

impl TpmSized for TpmSetCommandCodeAuditStatusCommand

Source§

impl TpmSized for TpmSetCommandCodeAuditStatusResponse

Source§

impl TpmSized for TpmSetPrimaryPolicyCommand

Source§

impl TpmSized for TpmSetPrimaryPolicyResponse

Source§

impl TpmSized for TpmShutdownCommand

Source§

impl TpmSized for TpmShutdownResponse

Source§

impl TpmSized for TpmSignCommand

Source§

impl TpmSized for TpmSignResponse

Source§

impl TpmSized for TpmStartAuthSessionCommand

Source§

impl TpmSized for TpmStartAuthSessionResponse

Source§

impl TpmSized for TpmStartupCommand

Source§

impl TpmSized for TpmStartupResponse

Source§

impl TpmSized for TpmStirRandomCommand

Source§

impl TpmSized for TpmStirRandomResponse

Source§

impl TpmSized for TpmTestParmsCommand

Source§

impl TpmSized for TpmTestParmsResponse

Source§

impl TpmSized for TpmUnsealCommand

Source§

impl TpmSized for TpmUnsealResponse

Source§

impl TpmSized for TpmVendorTcgTestCommand

Source§

impl TpmSized for TpmVendorTcgTestResponse

Source§

impl TpmSized for TpmVerifySignatureCommand

Source§

impl TpmSized for TpmVerifySignatureResponse

Source§

impl TpmSized for TpmZGen2PhaseCommand

Source§

impl TpmSized for TpmZGen2PhaseResponse

Source§

impl<T: TpmSized + Copy, const CAPACITY: usize> TpmSized for TpmList<T, CAPACITY>

Source§

impl<const CAPACITY: usize> TpmSized for TpmBuffer<CAPACITY>