pub struct TpmPolicySignedCommand {
pub handles: [TpmHandle; 2],
pub nonce_tpm: Tpm2bNonce,
pub cp_hash_a: Tpm2bDigest,
pub policy_ref: Tpm2bNonce,
pub expiration: TpmInt32,
pub auth: TpmtSignature,
}Fields§
§handles: [TpmHandle; 2]§nonce_tpm: Tpm2bNonce§cp_hash_a: Tpm2bDigest§policy_ref: Tpm2bNonce§expiration: TpmInt32§auth: TpmtSignatureImplementations§
Source§impl TpmPolicySignedCommand
impl TpmPolicySignedCommand
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 TpmPolicySignedCommand
impl Clone for TpmPolicySignedCommand
Source§fn clone(&self) -> TpmPolicySignedCommand
fn clone(&self) -> TpmPolicySignedCommand
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 TpmPolicySignedCommand
impl Debug for TpmPolicySignedCommand
Source§impl PartialEq for TpmPolicySignedCommand
impl PartialEq for TpmPolicySignedCommand
Source§fn eq(&self, other: &TpmPolicySignedCommand) -> bool
fn eq(&self, other: &TpmPolicySignedCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TpmFrame for TpmPolicySignedCommand
impl TpmFrame for TpmPolicySignedCommand
Source§impl TpmHeader for TpmPolicySignedCommand
impl TpmHeader for TpmPolicySignedCommand
Source§impl TpmMarshal for TpmPolicySignedCommand
impl TpmMarshal for TpmPolicySignedCommand
Source§impl TpmSized for TpmPolicySignedCommand
impl TpmSized for TpmPolicySignedCommand
impl Eq for TpmPolicySignedCommand
impl StructuralPartialEq for TpmPolicySignedCommand
Auto Trait Implementations§
impl Freeze for TpmPolicySignedCommand
impl RefUnwindSafe for TpmPolicySignedCommand
impl Send for TpmPolicySignedCommand
impl Sync for TpmPolicySignedCommand
impl Unpin for TpmPolicySignedCommand
impl UnsafeUnpin for TpmPolicySignedCommand
impl UnwindSafe for TpmPolicySignedCommand
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