pub struct TpmZGen2PhaseCommand {
pub handles: [TpmHandle; 1],
pub in_qsb: Tpm2bEccPoint,
pub in_qeb: Tpm2bEccPoint,
pub in_scheme: TpmiEccKeyExchange,
pub counter: TpmUint16,
}Fields§
§handles: [TpmHandle; 1]§in_qsb: Tpm2bEccPoint§in_qeb: Tpm2bEccPoint§in_scheme: TpmiEccKeyExchange§counter: TpmUint16Implementations§
Source§impl TpmZGen2PhaseCommand
impl TpmZGen2PhaseCommand
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 TpmZGen2PhaseCommand
impl Clone for TpmZGen2PhaseCommand
Source§fn clone(&self) -> TpmZGen2PhaseCommand
fn clone(&self) -> TpmZGen2PhaseCommand
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 TpmZGen2PhaseCommand
impl Debug for TpmZGen2PhaseCommand
Source§impl PartialEq for TpmZGen2PhaseCommand
impl PartialEq for TpmZGen2PhaseCommand
Source§fn eq(&self, other: &TpmZGen2PhaseCommand) -> bool
fn eq(&self, other: &TpmZGen2PhaseCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TpmFrame for TpmZGen2PhaseCommand
impl TpmFrame for TpmZGen2PhaseCommand
Source§impl TpmHeader for TpmZGen2PhaseCommand
impl TpmHeader for TpmZGen2PhaseCommand
Source§impl TpmMarshal for TpmZGen2PhaseCommand
impl TpmMarshal for TpmZGen2PhaseCommand
Source§impl TpmSized for TpmZGen2PhaseCommand
impl TpmSized for TpmZGen2PhaseCommand
impl Eq for TpmZGen2PhaseCommand
impl StructuralPartialEq for TpmZGen2PhaseCommand
Auto Trait Implementations§
impl Freeze for TpmZGen2PhaseCommand
impl RefUnwindSafe for TpmZGen2PhaseCommand
impl Send for TpmZGen2PhaseCommand
impl Sync for TpmZGen2PhaseCommand
impl Unpin for TpmZGen2PhaseCommand
impl UnsafeUnpin for TpmZGen2PhaseCommand
impl UnwindSafe for TpmZGen2PhaseCommand
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