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