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