pub struct TpmGetCapabilityResponse {
pub handles: [TpmHandle; 0],
pub more_data: TpmiYesNo,
pub capability_data: TpmsCapabilityData,
}Fields§
§handles: [TpmHandle; 0]§more_data: TpmiYesNo§capability_data: TpmsCapabilityDataImplementations§
Source§impl TpmGetCapabilityResponse
impl TpmGetCapabilityResponse
Sourcepub fn cast_frame(buf: &[u8]) -> TpmResult<&TpmResponse>
pub fn cast_frame(buf: &[u8]) -> TpmResult<&TpmResponse>
Casts a response frame into a typed wire view for this response.
§Errors
Returns Err(TpmProtocolError) when the frame envelope is malformed.
Sourcepub fn cast_frame_mut(buf: &mut [u8]) -> TpmResult<&mut TpmResponse>
pub fn cast_frame_mut(buf: &mut [u8]) -> TpmResult<&mut TpmResponse>
Casts a mutable response frame into a typed mutable wire view for this response.
§Errors
Returns Err(TpmProtocolError) when the frame envelope is malformed.
Trait Implementations§
Source§impl Clone for TpmGetCapabilityResponse
impl Clone for TpmGetCapabilityResponse
Source§fn clone(&self) -> TpmGetCapabilityResponse
fn clone(&self) -> TpmGetCapabilityResponse
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 TpmGetCapabilityResponse
impl Debug for TpmGetCapabilityResponse
Source§impl PartialEq for TpmGetCapabilityResponse
impl PartialEq for TpmGetCapabilityResponse
Source§fn eq(&self, other: &TpmGetCapabilityResponse) -> bool
fn eq(&self, other: &TpmGetCapabilityResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TpmFrame for TpmGetCapabilityResponse
impl TpmFrame for TpmGetCapabilityResponse
Source§impl TpmHeader for TpmGetCapabilityResponse
impl TpmHeader for TpmGetCapabilityResponse
Source§impl TpmSized for TpmGetCapabilityResponse
impl TpmSized for TpmGetCapabilityResponse
impl Eq for TpmGetCapabilityResponse
impl StructuralPartialEq for TpmGetCapabilityResponse
Auto Trait Implementations§
impl Freeze for TpmGetCapabilityResponse
impl RefUnwindSafe for TpmGetCapabilityResponse
impl Send for TpmGetCapabilityResponse
impl Sync for TpmGetCapabilityResponse
impl Unpin for TpmGetCapabilityResponse
impl UnsafeUnpin for TpmGetCapabilityResponse
impl UnwindSafe for TpmGetCapabilityResponse
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