pub struct TpmLoadCommand {
pub handles: [TpmHandle; 1],
pub in_private: Tpm2bPrivate,
pub in_public: Tpm2bPublic,
}Fields§
§handles: [TpmHandle; 1]§in_private: Tpm2bPrivate§in_public: Tpm2bPublicImplementations§
Source§impl TpmLoadCommand
impl TpmLoadCommand
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 TpmLoadCommand
impl Clone for TpmLoadCommand
Source§fn clone(&self) -> TpmLoadCommand
fn clone(&self) -> TpmLoadCommand
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 TpmLoadCommand
impl Debug for TpmLoadCommand
Source§impl Default for TpmLoadCommand
impl Default for TpmLoadCommand
Source§fn default() -> TpmLoadCommand
fn default() -> TpmLoadCommand
Returns the “default value” for a type. Read more
Source§impl PartialEq for TpmLoadCommand
impl PartialEq for TpmLoadCommand
Source§fn eq(&self, other: &TpmLoadCommand) -> bool
fn eq(&self, other: &TpmLoadCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TpmFrame for TpmLoadCommand
impl TpmFrame for TpmLoadCommand
Source§impl TpmHeader for TpmLoadCommand
impl TpmHeader for TpmLoadCommand
Source§impl TpmMarshal for TpmLoadCommand
impl TpmMarshal for TpmLoadCommand
Source§impl TpmMarshalBody for TpmLoadCommand
impl TpmMarshalBody for TpmLoadCommand
Source§impl TpmSized for TpmLoadCommand
impl TpmSized for TpmLoadCommand
impl Eq for TpmLoadCommand
impl StructuralPartialEq for TpmLoadCommand
Auto Trait Implementations§
impl Freeze for TpmLoadCommand
impl RefUnwindSafe for TpmLoadCommand
impl Send for TpmLoadCommand
impl Sync for TpmLoadCommand
impl Unpin for TpmLoadCommand
impl UnsafeUnpin for TpmLoadCommand
impl UnwindSafe for TpmLoadCommand
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