pub struct TpmGetCapabilityCommand {
pub handles: [TpmHandle; 0],
pub cap: TpmCap,
pub property: TpmUint32,
pub property_count: TpmUint32,
}Fields§
§handles: [TpmHandle; 0]§cap: TpmCap§property: TpmUint32§property_count: TpmUint32Implementations§
Source§impl TpmGetCapabilityCommand
impl TpmGetCapabilityCommand
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 TpmGetCapabilityCommand
impl Clone for TpmGetCapabilityCommand
Source§fn clone(&self) -> TpmGetCapabilityCommand
fn clone(&self) -> TpmGetCapabilityCommand
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 TpmGetCapabilityCommand
impl Debug for TpmGetCapabilityCommand
Source§impl PartialEq for TpmGetCapabilityCommand
impl PartialEq for TpmGetCapabilityCommand
Source§fn eq(&self, other: &TpmGetCapabilityCommand) -> bool
fn eq(&self, other: &TpmGetCapabilityCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TpmFrame for TpmGetCapabilityCommand
impl TpmFrame for TpmGetCapabilityCommand
Source§impl TpmHeader for TpmGetCapabilityCommand
impl TpmHeader for TpmGetCapabilityCommand
Source§impl TpmMarshal for TpmGetCapabilityCommand
impl TpmMarshal for TpmGetCapabilityCommand
Source§impl TpmSized for TpmGetCapabilityCommand
impl TpmSized for TpmGetCapabilityCommand
impl Eq for TpmGetCapabilityCommand
impl StructuralPartialEq for TpmGetCapabilityCommand
Auto Trait Implementations§
impl Freeze for TpmGetCapabilityCommand
impl RefUnwindSafe for TpmGetCapabilityCommand
impl Send for TpmGetCapabilityCommand
impl Sync for TpmGetCapabilityCommand
impl Unpin for TpmGetCapabilityCommand
impl UnsafeUnpin for TpmGetCapabilityCommand
impl UnwindSafe for TpmGetCapabilityCommand
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