pub struct TpmSetPrimaryPolicyCommand {
pub handles: [TpmHandle; 1],
pub auth_policy: Tpm2bDigest,
pub hash_alg: TpmAlgId,
}Fields§
§handles: [TpmHandle; 1]§auth_policy: Tpm2bDigest§hash_alg: TpmAlgIdImplementations§
Source§impl TpmSetPrimaryPolicyCommand
impl TpmSetPrimaryPolicyCommand
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 TpmSetPrimaryPolicyCommand
impl Clone for TpmSetPrimaryPolicyCommand
Source§fn clone(&self) -> TpmSetPrimaryPolicyCommand
fn clone(&self) -> TpmSetPrimaryPolicyCommand
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 TpmSetPrimaryPolicyCommand
impl Debug for TpmSetPrimaryPolicyCommand
Source§impl PartialEq for TpmSetPrimaryPolicyCommand
impl PartialEq for TpmSetPrimaryPolicyCommand
Source§fn eq(&self, other: &TpmSetPrimaryPolicyCommand) -> bool
fn eq(&self, other: &TpmSetPrimaryPolicyCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TpmSized for TpmSetPrimaryPolicyCommand
impl TpmSized for TpmSetPrimaryPolicyCommand
impl Eq for TpmSetPrimaryPolicyCommand
impl StructuralPartialEq for TpmSetPrimaryPolicyCommand
Auto Trait Implementations§
impl Freeze for TpmSetPrimaryPolicyCommand
impl RefUnwindSafe for TpmSetPrimaryPolicyCommand
impl Send for TpmSetPrimaryPolicyCommand
impl Sync for TpmSetPrimaryPolicyCommand
impl Unpin for TpmSetPrimaryPolicyCommand
impl UnsafeUnpin for TpmSetPrimaryPolicyCommand
impl UnwindSafe for TpmSetPrimaryPolicyCommand
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