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
impl Copy for TpmPolicyPcrCommand
Source§impl Debug for TpmPolicyPcrCommand
impl Debug for TpmPolicyPcrCommand
Source§impl Default for TpmPolicyPcrCommand
impl Default for TpmPolicyPcrCommand
impl Eq for TpmPolicyPcrCommand
Source§impl PartialEq for TpmPolicyPcrCommand
impl PartialEq for TpmPolicyPcrCommand
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
Source§impl TpmSized for TpmPolicyPcrCommand
impl TpmSized 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