pub struct TpmPolicyNvCommand {
pub handles: [TpmHandle; 3],
pub operand_b: Tpm2bMaxBuffer,
pub offset: TpmUint16,
pub operation: TpmEo,
}Fields§
§handles: [TpmHandle; 3]§operand_b: Tpm2bMaxBuffer§offset: TpmUint16§operation: TpmEoImplementations§
Source§impl TpmPolicyNvCommand
impl TpmPolicyNvCommand
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 TpmPolicyNvCommand
impl Clone for TpmPolicyNvCommand
Source§fn clone(&self) -> TpmPolicyNvCommand
fn clone(&self) -> TpmPolicyNvCommand
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 TpmPolicyNvCommand
impl Debug for TpmPolicyNvCommand
impl Eq for TpmPolicyNvCommand
Source§impl PartialEq for TpmPolicyNvCommand
impl PartialEq for TpmPolicyNvCommand
Source§fn eq(&self, other: &TpmPolicyNvCommand) -> bool
fn eq(&self, other: &TpmPolicyNvCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TpmPolicyNvCommand
Source§impl TpmFrame for TpmPolicyNvCommand
impl TpmFrame for TpmPolicyNvCommand
Source§impl TpmHeader for TpmPolicyNvCommand
impl TpmHeader for TpmPolicyNvCommand
Source§impl TpmMarshal for TpmPolicyNvCommand
impl TpmMarshal for TpmPolicyNvCommand
Source§impl TpmMarshalBody for TpmPolicyNvCommand
impl TpmMarshalBody for TpmPolicyNvCommand
Auto Trait Implementations§
impl Freeze for TpmPolicyNvCommand
impl RefUnwindSafe for TpmPolicyNvCommand
impl Send for TpmPolicyNvCommand
impl Sync for TpmPolicyNvCommand
impl Unpin for TpmPolicyNvCommand
impl UnsafeUnpin for TpmPolicyNvCommand
impl UnwindSafe for TpmPolicyNvCommand
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