Trait TpmHeader

Source
pub trait TpmHeader<'a>:
    TpmBuild
    + TpmParse<'a>
    + Debug
    + TpmSized {
    const COMMAND: TpmCc;
    const NO_SESSIONS: bool;
    const WITH_SESSIONS: bool;
    const HANDLES: usize;
}
Expand description

A trait for TPM commands and responses that provides header information.

Required Associated Constants§

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 TpmHeader<'_> for TpmContextLoadCommand

Source§

const COMMAND: TpmCc = TpmCc::ContextLoad

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = false

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmContextLoadResponse

Source§

const COMMAND: TpmCc = TpmCc::ContextLoad

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = false

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmContextSaveCommand

Source§

const COMMAND: TpmCc = TpmCc::ContextSave

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = false

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmContextSaveResponse

Source§

const COMMAND: TpmCc = TpmCc::ContextSave

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = false

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmCreateCommand

Source§

const COMMAND: TpmCc = TpmCc::Create

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmCreatePrimaryCommand

Source§

const COMMAND: TpmCc = TpmCc::CreatePrimary

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmCreatePrimaryResponse

Source§

const COMMAND: TpmCc = TpmCc::CreatePrimary

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmCreateResponse

Source§

const COMMAND: TpmCc = TpmCc::Create

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmDictionaryAttackLockResetCommand

Source§

const COMMAND: TpmCc = TpmCc::DictionaryAttackLockReset

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmDictionaryAttackLockResetResponse

Source§

const COMMAND: TpmCc = TpmCc::DictionaryAttackLockReset

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmEvictControlCommand

Source§

const COMMAND: TpmCc = TpmCc::EvictControl

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 2usize

Source§

impl TpmHeader<'_> for TpmEvictControlResponse

Source§

const COMMAND: TpmCc = TpmCc::EvictControl

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmFlushContextCommand

Source§

const COMMAND: TpmCc = TpmCc::FlushContext

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = false

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmFlushContextResponse

Source§

const COMMAND: TpmCc = TpmCc::FlushContext

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = false

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmGetCapabilityCommand

Source§

const COMMAND: TpmCc = TpmCc::GetCapability

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmGetCapabilityResponse

Source§

const COMMAND: TpmCc = TpmCc::GetCapability

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = false

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmHashCommand

Source§

const COMMAND: TpmCc = TpmCc::Hash

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = false

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmHashResponse

Source§

const COMMAND: TpmCc = TpmCc::Hash

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = false

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmImportCommand

Source§

const COMMAND: TpmCc = TpmCc::Import

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmImportResponse

Source§

const COMMAND: TpmCc = TpmCc::Import

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmLoadCommand

Source§

const COMMAND: TpmCc = TpmCc::Load

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmLoadResponse

Source§

const COMMAND: TpmCc = TpmCc::Load

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmObjectChangeAuthCommand

Source§

const COMMAND: TpmCc = TpmCc::ObjectChangeAuth

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 2usize

Source§

impl TpmHeader<'_> for TpmObjectChangeAuthResponse

Source§

const COMMAND: TpmCc = TpmCc::ObjectChangeAuth

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmPcrEventCommand

Source§

const COMMAND: TpmCc = TpmCc::PcrEvent

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmPcrEventResponse

Source§

const COMMAND: TpmCc = TpmCc::PcrEvent

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmPcrReadCommand

Source§

const COMMAND: TpmCc = TpmCc::PcrRead

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = false

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmPcrReadResponse

Source§

const COMMAND: TpmCc = TpmCc::PcrRead

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = false

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmPolicyAuthValueCommand

Source§

const COMMAND: TpmCc = TpmCc::PolicyAuthValue

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmPolicyAuthValueResponse

Source§

const COMMAND: TpmCc = TpmCc::PolicyAuthValue

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmPolicyCommandCodeCommand

Source§

const COMMAND: TpmCc = TpmCc::PolicyCommandCode

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmPolicyCommandCodeResponse

Source§

const COMMAND: TpmCc = TpmCc::PolicyCommandCode

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmPolicyGetDigestCommand

Source§

const COMMAND: TpmCc = TpmCc::PolicyGetDigest

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmPolicyGetDigestResponse

Source§

const COMMAND: TpmCc = TpmCc::PolicyGetDigest

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmPolicyOrCommand

Source§

const COMMAND: TpmCc = TpmCc::PolicyOR

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmPolicyOrResponse

Source§

const COMMAND: TpmCc = TpmCc::PolicyOR

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmPolicyPasswordCommand

Source§

const COMMAND: TpmCc = TpmCc::PolicyPassword

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmPolicyPasswordResponse

Source§

const COMMAND: TpmCc = TpmCc::PolicyPassword

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmPolicyPcrCommand

Source§

const COMMAND: TpmCc = TpmCc::PolicyPcr

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmPolicyPcrResponse

Source§

const COMMAND: TpmCc = TpmCc::PolicyPcr

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmPolicyRestartCommand

Source§

const COMMAND: TpmCc = TpmCc::PolicyRestart

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmPolicyRestartResponse

Source§

const COMMAND: TpmCc = TpmCc::PolicyRestart

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmPolicySecretCommand

Source§

const COMMAND: TpmCc = TpmCc::PolicySecret

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 2usize

Source§

impl TpmHeader<'_> for TpmPolicySecretResponse

Source§

const COMMAND: TpmCc = TpmCc::PolicySecret

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmReadPublicCommand

Source§

const COMMAND: TpmCc = TpmCc::ReadPublic

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmReadPublicResponse

Source§

const COMMAND: TpmCc = TpmCc::ReadPublic

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = false

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmStartAuthSessionCommand

Source§

const COMMAND: TpmCc = TpmCc::StartAuthSession

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 2usize

Source§

impl TpmHeader<'_> for TpmStartAuthSessionResponse

Source§

const COMMAND: TpmCc = TpmCc::StartAuthSession

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = false

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmUnsealCommand

Source§

const COMMAND: TpmCc = TpmCc::Unseal

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 1usize

Source§

impl TpmHeader<'_> for TpmUnsealResponse

Source§

const COMMAND: TpmCc = TpmCc::Unseal

Source§

const NO_SESSIONS: bool = false

Source§

const WITH_SESSIONS: bool = true

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmVendorTcgTestCommand

Source§

const COMMAND: TpmCc = TpmCc::VendorTcgTest

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = false

Source§

const HANDLES: usize = 0usize

Source§

impl TpmHeader<'_> for TpmVendorTcgTestResponse

Source§

const COMMAND: TpmCc = TpmCc::VendorTcgTest

Source§

const NO_SESSIONS: bool = true

Source§

const WITH_SESSIONS: bool = false

Source§

const HANDLES: usize = 0usize