pub struct TpmPolicyCapabilityCommand {
pub handles: [TpmHandle; 1],
pub capability: TpmCap,
pub property: TpmUint32,
pub op: TpmEo,
pub operand_b: Tpm2bMaxBuffer,
}Fields§
§handles: [TpmHandle; 1]§capability: TpmCap§property: TpmUint32§op: TpmEo§operand_b: Tpm2bMaxBufferImplementations§
Source§impl TpmPolicyCapabilityCommand
impl TpmPolicyCapabilityCommand
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 TpmPolicyCapabilityCommand
impl Clone for TpmPolicyCapabilityCommand
Source§fn clone(&self) -> TpmPolicyCapabilityCommand
fn clone(&self) -> TpmPolicyCapabilityCommand
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 TpmPolicyCapabilityCommand
impl Debug for TpmPolicyCapabilityCommand
Source§impl PartialEq for TpmPolicyCapabilityCommand
impl PartialEq for TpmPolicyCapabilityCommand
Source§fn eq(&self, other: &TpmPolicyCapabilityCommand) -> bool
fn eq(&self, other: &TpmPolicyCapabilityCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TpmSized for TpmPolicyCapabilityCommand
impl TpmSized for TpmPolicyCapabilityCommand
impl Eq for TpmPolicyCapabilityCommand
impl StructuralPartialEq for TpmPolicyCapabilityCommand
Auto Trait Implementations§
impl Freeze for TpmPolicyCapabilityCommand
impl RefUnwindSafe for TpmPolicyCapabilityCommand
impl Send for TpmPolicyCapabilityCommand
impl Sync for TpmPolicyCapabilityCommand
impl Unpin for TpmPolicyCapabilityCommand
impl UnsafeUnpin for TpmPolicyCapabilityCommand
impl UnwindSafe for TpmPolicyCapabilityCommand
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