pub struct TpmFormatOneResponseCode { /* private fields */ }Expand description
Type representing the TPM format one response code.
Implementations§
Source§impl TpmFormatOneResponseCode
impl TpmFormatOneResponseCode
Sourcepub const fn new(
error_number: TpmFormatOneError,
argument_number: ArgumentNumber,
) -> Self
pub const fn new( error_number: TpmFormatOneError, argument_number: ArgumentNumber, ) -> Self
Creates a new tpm format one response code
Sourcepub const fn error_number(&self) -> TpmFormatOneError
pub const fn error_number(&self) -> TpmFormatOneError
Returns the error number.
Sourcepub const fn argument_number(&self) -> ArgumentNumber
pub const fn argument_number(&self) -> ArgumentNumber
Returns the argument number
Trait Implementations§
Source§impl Clone for TpmFormatOneResponseCode
impl Clone for TpmFormatOneResponseCode
Source§fn clone(&self) -> TpmFormatOneResponseCode
fn clone(&self) -> TpmFormatOneResponseCode
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 Debug for TpmFormatOneResponseCode
impl Debug for TpmFormatOneResponseCode
Source§impl Display for TpmFormatOneResponseCode
impl Display for TpmFormatOneResponseCode
Source§impl Error for TpmFormatOneResponseCode
impl Error for TpmFormatOneResponseCode
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<TpmFormatOneResponseCode> for u16
impl From<TpmFormatOneResponseCode> for u16
Source§fn from(tpm_format_one_response_code: TpmFormatOneResponseCode) -> u16
fn from(tpm_format_one_response_code: TpmFormatOneResponseCode) -> u16
Converts to this type from the input type.
Source§impl Hash for TpmFormatOneResponseCode
impl Hash for TpmFormatOneResponseCode
Source§impl PartialEq for TpmFormatOneResponseCode
impl PartialEq for TpmFormatOneResponseCode
Source§impl TryFrom<u16> for TpmFormatOneResponseCode
impl TryFrom<u16> for TpmFormatOneResponseCode
impl Copy for TpmFormatOneResponseCode
impl Eq for TpmFormatOneResponseCode
impl StructuralPartialEq for TpmFormatOneResponseCode
Auto Trait Implementations§
impl Freeze for TpmFormatOneResponseCode
impl RefUnwindSafe for TpmFormatOneResponseCode
impl Send for TpmFormatOneResponseCode
impl Sync for TpmFormatOneResponseCode
impl Unpin for TpmFormatOneResponseCode
impl UnsafeUnpin for TpmFormatOneResponseCode
impl UnwindSafe for TpmFormatOneResponseCode
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