pub struct TpmEncryptDecryptCommand {
pub handles: [TpmHandle; 1],
pub decrypt: TpmiYesNo,
pub mode: TpmiAlgCipherMode,
pub iv_in: Tpm2bIv,
pub in_data: Tpm2bMaxBuffer,
}Fields§
§handles: [TpmHandle; 1]§decrypt: TpmiYesNo§mode: TpmiAlgCipherMode§iv_in: Tpm2bIv§in_data: Tpm2bMaxBufferImplementations§
Source§impl TpmEncryptDecryptCommand
impl TpmEncryptDecryptCommand
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 TpmEncryptDecryptCommand
impl Clone for TpmEncryptDecryptCommand
Source§fn clone(&self) -> TpmEncryptDecryptCommand
fn clone(&self) -> TpmEncryptDecryptCommand
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 TpmEncryptDecryptCommand
impl Debug for TpmEncryptDecryptCommand
Source§impl PartialEq for TpmEncryptDecryptCommand
impl PartialEq for TpmEncryptDecryptCommand
Source§fn eq(&self, other: &TpmEncryptDecryptCommand) -> bool
fn eq(&self, other: &TpmEncryptDecryptCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TpmFrame for TpmEncryptDecryptCommand
impl TpmFrame for TpmEncryptDecryptCommand
Source§impl TpmHeader for TpmEncryptDecryptCommand
impl TpmHeader for TpmEncryptDecryptCommand
Source§impl TpmSized for TpmEncryptDecryptCommand
impl TpmSized for TpmEncryptDecryptCommand
impl Eq for TpmEncryptDecryptCommand
impl StructuralPartialEq for TpmEncryptDecryptCommand
Auto Trait Implementations§
impl Freeze for TpmEncryptDecryptCommand
impl RefUnwindSafe for TpmEncryptDecryptCommand
impl Send for TpmEncryptDecryptCommand
impl Sync for TpmEncryptDecryptCommand
impl Unpin for TpmEncryptDecryptCommand
impl UnsafeUnpin for TpmEncryptDecryptCommand
impl UnwindSafe for TpmEncryptDecryptCommand
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