Enum Tpm2ErrorCode
#[non_exhaustive]pub enum Tpm2ErrorCode {
Tpm2ErrFmt0(Tpm2ErrFmt0),
Tpm2ErrFmt1(Tpm2ErrFmt1),
Tpm2Warning(Tpm2Warning),
Other(u32),
}Expand description
TPM 2.0 response code wrapper.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
§impl Clone for Tpm2ErrorCode
impl Clone for Tpm2ErrorCode
§fn clone(&self) -> Tpm2ErrorCode
fn clone(&self) -> Tpm2ErrorCode
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 more§impl Debug for Tpm2ErrorCode
impl Debug for Tpm2ErrorCode
§impl Hash for Tpm2ErrorCode
impl Hash for Tpm2ErrorCode
§impl Ord for Tpm2ErrorCode
impl Ord for Tpm2ErrorCode
§impl PartialEq for Tpm2ErrorCode
impl PartialEq for Tpm2ErrorCode
§impl PartialOrd for Tpm2ErrorCode
impl PartialOrd for Tpm2ErrorCode
impl Copy for Tpm2ErrorCode
impl Eq for Tpm2ErrorCode
impl StructuralPartialEq for Tpm2ErrorCode
Auto Trait Implementations§
impl Freeze for Tpm2ErrorCode
impl RefUnwindSafe for Tpm2ErrorCode
impl Send for Tpm2ErrorCode
impl Sync for Tpm2ErrorCode
impl Unpin for Tpm2ErrorCode
impl UnwindSafe for Tpm2ErrorCode
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