Enum tss_esapi::WrapperErrorKind
source · pub enum WrapperErrorKind {
WrongParamSize,
ParamsMissing,
InconsistentParams,
UnsupportedParam,
InvalidParam,
WrongValueFromTpm,
MissingAuthSession,
InvalidHandleState,
InternalError,
}
Expand description
List of error types that might occur in the wrapper.
Variants§
WrongParamSize
Returned when a size or length-defined parameter does not conform with the size restrictions for it.
ParamsMissing
Returned when a required parameter was not passed, usually to a builder.
InconsistentParams
Returned when two or more parameters have inconsistent values or variants.
UnsupportedParam
Returned when the value of a parameter is not yet supported.
InvalidParam
Returned when the value of a parameter is invalid for that type.
WrongValueFromTpm
Returned when the TPM returns an invalid value from a call.
MissingAuthSession
Returned when a session for authentication has not been set before the call is made.
InvalidHandleState
Returned when a handle is required to be in a specific state (i.g. Open, Flushed, Closed) but it is not.
InternalError
An unexpected internal error occurred.
Trait Implementations§
source§impl Clone for WrapperErrorKind
impl Clone for WrapperErrorKind
source§fn clone(&self) -> WrapperErrorKind
fn clone(&self) -> WrapperErrorKind
Returns a copy 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 WrapperErrorKind
impl Debug for WrapperErrorKind
source§impl Display for WrapperErrorKind
impl Display for WrapperErrorKind
source§impl Error for WrapperErrorKind
impl Error for WrapperErrorKind
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq<WrapperErrorKind> for WrapperErrorKind
impl PartialEq<WrapperErrorKind> for WrapperErrorKind
source§fn eq(&self, other: &WrapperErrorKind) -> bool
fn eq(&self, other: &WrapperErrorKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.