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