pub struct TpmPcrSetAuthPolicyCommand {
pub handles: [TpmHandle; 1],
pub auth_policy: Tpm2bDigest,
pub hash_alg: TpmAlgId,
pub pcr_num: TpmRh,
}Fields§
§handles: [TpmHandle; 1]§auth_policy: Tpm2bDigest§hash_alg: TpmAlgId§pcr_num: TpmRhImplementations§
Source§impl TpmPcrSetAuthPolicyCommand
impl TpmPcrSetAuthPolicyCommand
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(TpmProtocolError) 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(TpmProtocolError) when the frame is malformed or
has a different command code.
Trait Implementations§
Source§impl Clone for TpmPcrSetAuthPolicyCommand
impl Clone for TpmPcrSetAuthPolicyCommand
Source§fn clone(&self) -> TpmPcrSetAuthPolicyCommand
fn clone(&self) -> TpmPcrSetAuthPolicyCommand
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 TpmPcrSetAuthPolicyCommand
impl Debug for TpmPcrSetAuthPolicyCommand
Source§impl PartialEq for TpmPcrSetAuthPolicyCommand
impl PartialEq for TpmPcrSetAuthPolicyCommand
Source§fn eq(&self, other: &TpmPcrSetAuthPolicyCommand) -> bool
fn eq(&self, other: &TpmPcrSetAuthPolicyCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TpmSized for TpmPcrSetAuthPolicyCommand
impl TpmSized for TpmPcrSetAuthPolicyCommand
impl Eq for TpmPcrSetAuthPolicyCommand
impl StructuralPartialEq for TpmPcrSetAuthPolicyCommand
Auto Trait Implementations§
impl Freeze for TpmPcrSetAuthPolicyCommand
impl RefUnwindSafe for TpmPcrSetAuthPolicyCommand
impl Send for TpmPcrSetAuthPolicyCommand
impl Sync for TpmPcrSetAuthPolicyCommand
impl Unpin for TpmPcrSetAuthPolicyCommand
impl UnsafeUnpin for TpmPcrSetAuthPolicyCommand
impl UnwindSafe for TpmPcrSetAuthPolicyCommand
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