Enum BaseErrorCode
#[non_exhaustive]pub enum BaseErrorCode {
Show 55 variants
GeneralFailure,
NotImplemented,
BadContext,
AbiMismatch,
BadReference,
InsufficientBuffer,
BadSequence,
NoConnection,
TryAgain,
IoError,
BadValue,
NotPermitted,
InvalidSessions,
NoDecryptParam,
NoEncryptParam,
BadSize,
MalformedResponse,
InsufficientContext,
InsufficientResponse,
IncompatibleTcti,
NotSupported,
BadTctiStructure,
Memory,
BadTr,
MultipleDecryptSessions,
MultipleEncryptSessions,
RspAuthFailed,
NoConfig,
BadPath,
NotDeletable,
PathAlreadyExists,
KeyNotFound,
SignatureVerificationFailed,
HashMismatch,
KeyNotDuplicable,
PathNotFound,
NoCert,
NoPcr,
PcrNotResettable,
BadTemplate,
AuthorizationFailed,
AuthorizationUnknown,
NvNotRadable,
NvTooSmall,
NvNotWriteable,
PolicyUnknown,
NvWrongType,
NameAlreadyExists,
NoTpm,
BadKey,
NoHandle,
NotProvisioned,
AlreadyProvisioned,
CallbackNull,
UnknownError(u32),
}Expand description
Generic TSS2 error codes.
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.
GeneralFailure
NotImplemented
BadContext
AbiMismatch
BadReference
InsufficientBuffer
BadSequence
NoConnection
TryAgain
IoError
BadValue
NotPermitted
InvalidSessions
NoDecryptParam
NoEncryptParam
BadSize
MalformedResponse
InsufficientContext
InsufficientResponse
IncompatibleTcti
NotSupported
BadTctiStructure
Memory
BadTr
MultipleDecryptSessions
MultipleEncryptSessions
RspAuthFailed
NoConfig
BadPath
NotDeletable
PathAlreadyExists
KeyNotFound
SignatureVerificationFailed
HashMismatch
KeyNotDuplicable
PathNotFound
NoCert
NoPcr
PcrNotResettable
BadTemplate
AuthorizationFailed
AuthorizationUnknown
NvNotRadable
NvTooSmall
NvNotWriteable
PolicyUnknown
NvWrongType
NameAlreadyExists
NoTpm
BadKey
NoHandle
NotProvisioned
AlreadyProvisioned
CallbackNull
UnknownError(u32)
Trait Implementations§
§impl Clone for BaseErrorCode
impl Clone for BaseErrorCode
§fn clone(&self) -> BaseErrorCode
fn clone(&self) -> BaseErrorCode
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 BaseErrorCode
impl Debug for BaseErrorCode
§impl Hash for BaseErrorCode
impl Hash for BaseErrorCode
§impl Ord for BaseErrorCode
impl Ord for BaseErrorCode
§impl PartialEq for BaseErrorCode
impl PartialEq for BaseErrorCode
§impl PartialOrd for BaseErrorCode
impl PartialOrd for BaseErrorCode
impl Copy for BaseErrorCode
impl Eq for BaseErrorCode
impl StructuralPartialEq for BaseErrorCode
Auto Trait Implementations§
impl Freeze for BaseErrorCode
impl RefUnwindSafe for BaseErrorCode
impl Send for BaseErrorCode
impl Sync for BaseErrorCode
impl Unpin for BaseErrorCode
impl UnwindSafe for BaseErrorCode
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