Enum tss_esapi::WrapperErrorKind
source · [−]pub enum WrapperErrorKind {
WrongParamSize,
ParamsMissing,
InconsistentParams,
UnsupportedParam,
InvalidParam,
WrongValueFromTpm,
MissingAuthSession,
InvalidHandleState,
}
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
Returend 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.
Trait Implementations
sourceimpl Clone for WrapperErrorKind
impl Clone for WrapperErrorKind
sourcefn clone(&self) -> WrapperErrorKind
fn clone(&self) -> WrapperErrorKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WrapperErrorKind
impl Debug for WrapperErrorKind
sourceimpl Display for WrapperErrorKind
impl Display for WrapperErrorKind
sourceimpl Error for WrapperErrorKind
impl Error for WrapperErrorKind
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl PartialEq<WrapperErrorKind> for WrapperErrorKind
impl PartialEq<WrapperErrorKind> for WrapperErrorKind
impl Copy for WrapperErrorKind
impl StructuralPartialEq for WrapperErrorKind
Auto Trait Implementations
impl RefUnwindSafe for WrapperErrorKind
impl Send for WrapperErrorKind
impl Sync for WrapperErrorKind
impl Unpin for WrapperErrorKind
impl UnwindSafe for WrapperErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more