pub struct TpmPolicyPcrCommand {
pub handles: [TpmHandle; 1],
pub pcr_digest: Tpm2bDigest,
pub pcrs: TpmlPcrSelection,
}Fields§
§handles: [TpmHandle; 1]§pcr_digest: Tpm2bDigest§pcrs: TpmlPcrSelectionImplementations§
Source§impl TpmPolicyPcrCommand
impl TpmPolicyPcrCommand
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 TpmPolicyPcrCommand
impl Clone for TpmPolicyPcrCommand
Source§fn clone(&self) -> TpmPolicyPcrCommand
fn clone(&self) -> TpmPolicyPcrCommand
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 moreimpl Copy for TpmPolicyPcrCommand
Source§impl Debug for TpmPolicyPcrCommand
impl Debug for TpmPolicyPcrCommand
Source§impl Default for TpmPolicyPcrCommand
impl Default for TpmPolicyPcrCommand
Source§fn default() -> TpmPolicyPcrCommand
fn default() -> TpmPolicyPcrCommand
Returns the “default value” for a type. Read more
impl Eq for TpmPolicyPcrCommand
Source§impl PartialEq for TpmPolicyPcrCommand
impl PartialEq for TpmPolicyPcrCommand
Source§fn eq(&self, other: &TpmPolicyPcrCommand) -> bool
fn eq(&self, other: &TpmPolicyPcrCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TpmPolicyPcrCommand
Source§impl TpmFrame for TpmPolicyPcrCommand
impl TpmFrame for TpmPolicyPcrCommand
Source§impl TpmHeader for TpmPolicyPcrCommand
impl TpmHeader for TpmPolicyPcrCommand
Source§impl TpmMarshal for TpmPolicyPcrCommand
impl TpmMarshal for TpmPolicyPcrCommand
Source§impl TpmMarshalBody for TpmPolicyPcrCommand
impl TpmMarshalBody for TpmPolicyPcrCommand
Auto Trait Implementations§
impl Freeze for TpmPolicyPcrCommand
impl RefUnwindSafe for TpmPolicyPcrCommand
impl Send for TpmPolicyPcrCommand
impl Sync for TpmPolicyPcrCommand
impl Unpin for TpmPolicyPcrCommand
impl UnsafeUnpin for TpmPolicyPcrCommand
impl UnwindSafe for TpmPolicyPcrCommand
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