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