pub struct TpmPolicySecretCommand {
pub handles: [TpmHandle; 2],
pub nonce_tpm: Tpm2bNonce,
pub cp_hash_a: Tpm2bDigest,
pub policy_ref: Tpm2bNonce,
pub expiration: TpmInt32,
}Fields§
§handles: [TpmHandle; 2]§nonce_tpm: Tpm2bNonce§cp_hash_a: Tpm2bDigest§policy_ref: Tpm2bNonce§expiration: TpmInt32Implementations§
Source§impl TpmPolicySecretCommand
impl TpmPolicySecretCommand
Sourcepub fn cast_frame(buf: &[u8]) -> TpmResult<&TpmCommand>
pub fn cast_frame(buf: &[u8]) -> TpmResult<&TpmCommand>
Casts a command frame into a typed wire view for this command.
§Errors
Returns Err(TpmError) when the frame is malformed or
has a different command code.
Sourcepub fn cast_frame_mut(buf: &mut [u8]) -> TpmResult<&mut TpmCommand>
pub fn cast_frame_mut(buf: &mut [u8]) -> TpmResult<&mut TpmCommand>
Casts a mutable command frame into a typed mutable wire view for this command.
§Errors
Returns Err(TpmError) when the frame is malformed or
has a different command code.
Trait Implementations§
Source§impl Clone for TpmPolicySecretCommand
impl Clone for TpmPolicySecretCommand
Source§fn clone(&self) -> TpmPolicySecretCommand
fn clone(&self) -> TpmPolicySecretCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TpmPolicySecretCommand
impl Debug for TpmPolicySecretCommand
Source§impl Default for TpmPolicySecretCommand
impl Default for TpmPolicySecretCommand
Source§fn default() -> TpmPolicySecretCommand
fn default() -> TpmPolicySecretCommand
Returns the “default value” for a type. Read more
Source§impl PartialEq for TpmPolicySecretCommand
impl PartialEq for TpmPolicySecretCommand
Source§fn eq(&self, other: &TpmPolicySecretCommand) -> bool
fn eq(&self, other: &TpmPolicySecretCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TpmFrame for TpmPolicySecretCommand
impl TpmFrame for TpmPolicySecretCommand
Source§impl TpmHeader for TpmPolicySecretCommand
impl TpmHeader for TpmPolicySecretCommand
Source§impl TpmMarshal for TpmPolicySecretCommand
impl TpmMarshal for TpmPolicySecretCommand
Source§impl TpmSized for TpmPolicySecretCommand
impl TpmSized for TpmPolicySecretCommand
impl Eq for TpmPolicySecretCommand
impl StructuralPartialEq for TpmPolicySecretCommand
Auto Trait Implementations§
impl Freeze for TpmPolicySecretCommand
impl RefUnwindSafe for TpmPolicySecretCommand
impl Send for TpmPolicySecretCommand
impl Sync for TpmPolicySecretCommand
impl Unpin for TpmPolicySecretCommand
impl UnsafeUnpin for TpmPolicySecretCommand
impl UnwindSafe for TpmPolicySecretCommand
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