pub struct TpmFormatZeroErrorResponseCode { /* private fields */ }Expand description
Type representing the TPM format zero error response code.
§Details
The error messages are short forms of the descriptions given in the specification
that describes return codes (see the
Part 2, Structures).
Sometimes these descriptions refers to fields within the structures described in the specification. When
a message contains such a description then the name of the of the field is surrounded with backticks
(e.g. authValue).
Implementations§
Source§impl TpmFormatZeroErrorResponseCode
impl TpmFormatZeroErrorResponseCode
Sourcepub const fn error_number(&self) -> TpmFormatZeroError
pub const fn error_number(&self) -> TpmFormatZeroError
Returns the error number associated with the TPM format zero return code.
Trait Implementations§
Source§impl Clone for TpmFormatZeroErrorResponseCode
impl Clone for TpmFormatZeroErrorResponseCode
Source§fn clone(&self) -> TpmFormatZeroErrorResponseCode
fn clone(&self) -> TpmFormatZeroErrorResponseCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Error for TpmFormatZeroErrorResponseCode
impl Error for TpmFormatZeroErrorResponseCode
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<TpmFormatZeroError> for TpmFormatZeroErrorResponseCode
impl From<TpmFormatZeroError> for TpmFormatZeroErrorResponseCode
Source§fn from(tpm_format_zero_error: TpmFormatZeroError) -> Self
fn from(tpm_format_zero_error: TpmFormatZeroError) -> Self
Converts to this type from the input type.
Source§impl From<TpmFormatZeroErrorResponseCode> for TpmFormatZeroError
impl From<TpmFormatZeroErrorResponseCode> for TpmFormatZeroError
Source§fn from(
tpm_format_zero_error_response_code: TpmFormatZeroErrorResponseCode,
) -> Self
fn from( tpm_format_zero_error_response_code: TpmFormatZeroErrorResponseCode, ) -> Self
Converts to this type from the input type.
Source§impl From<TpmFormatZeroErrorResponseCode> for u8
impl From<TpmFormatZeroErrorResponseCode> for u8
Source§fn from(
tpm_format_zero_error_response_code: TpmFormatZeroErrorResponseCode,
) -> u8
fn from( tpm_format_zero_error_response_code: TpmFormatZeroErrorResponseCode, ) -> u8
Converts to this type from the input type.
Source§impl PartialEq for TpmFormatZeroErrorResponseCode
impl PartialEq for TpmFormatZeroErrorResponseCode
Source§fn eq(&self, other: &TpmFormatZeroErrorResponseCode) -> bool
fn eq(&self, other: &TpmFormatZeroErrorResponseCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u8> for TpmFormatZeroErrorResponseCode
impl TryFrom<u8> for TpmFormatZeroErrorResponseCode
impl Copy for TpmFormatZeroErrorResponseCode
impl Eq for TpmFormatZeroErrorResponseCode
impl StructuralPartialEq for TpmFormatZeroErrorResponseCode
Auto Trait Implementations§
impl Freeze for TpmFormatZeroErrorResponseCode
impl RefUnwindSafe for TpmFormatZeroErrorResponseCode
impl Send for TpmFormatZeroErrorResponseCode
impl Sync for TpmFormatZeroErrorResponseCode
impl Unpin for TpmFormatZeroErrorResponseCode
impl UnsafeUnpin for TpmFormatZeroErrorResponseCode
impl UnwindSafe for TpmFormatZeroErrorResponseCode
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