pub struct TpmPcrEventCommand {
pub handles: [TpmHandle; 1],
pub event_data: Tpm2bEvent,
}Fields§
§handles: [TpmHandle; 1]§event_data: Tpm2bEventImplementations§
Source§impl TpmPcrEventCommand
impl TpmPcrEventCommand
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 TpmPcrEventCommand
impl Clone for TpmPcrEventCommand
impl Copy for TpmPcrEventCommand
Source§impl Debug for TpmPcrEventCommand
impl Debug for TpmPcrEventCommand
impl Eq for TpmPcrEventCommand
Source§impl PartialEq for TpmPcrEventCommand
impl PartialEq for TpmPcrEventCommand
impl StructuralPartialEq for TpmPcrEventCommand
Source§impl TpmFrame for TpmPcrEventCommand
impl TpmFrame for TpmPcrEventCommand
Source§impl TpmHeader for TpmPcrEventCommand
impl TpmHeader for TpmPcrEventCommand
Source§impl TpmMarshal for TpmPcrEventCommand
impl TpmMarshal for TpmPcrEventCommand
Source§impl TpmMarshalBody for TpmPcrEventCommand
impl TpmMarshalBody for TpmPcrEventCommand
Source§impl TpmSized for TpmPcrEventCommand
impl TpmSized for TpmPcrEventCommand
Source§impl TpmUnmarshalBody for TpmPcrEventCommandwhere
Tpm2bEvent: TpmUnmarshal,
impl TpmUnmarshalBody for TpmPcrEventCommandwhere
Tpm2bEvent: TpmUnmarshal,
Auto Trait Implementations§
impl Freeze for TpmPcrEventCommand
impl RefUnwindSafe for TpmPcrEventCommand
impl Send for TpmPcrEventCommand
impl Sync for TpmPcrEventCommand
impl Unpin for TpmPcrEventCommand
impl UnsafeUnpin for TpmPcrEventCommand
impl UnwindSafe for TpmPcrEventCommand
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