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