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