pub enum TpmError {
Tss2 {
err: Error,
kind: Option<Tss2ResponseCodeKind>,
message: String,
},
Infallible(Infallible),
Io(Error),
NumParse(ParseIntError),
OpenSSL(ErrorStack),
InvalidRequest,
Other(String),
}
Variants
Tss2
Infallible(Infallible)
Io(Error)
NumParse(ParseIntError)
OpenSSL(ErrorStack)
InvalidRequest
Other(String)
Trait Implementations
sourceimpl Error for TpmError
impl Error for TpmError
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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ErrorStack> for TpmError
impl From<ErrorStack> for TpmError
sourcefn from(source: ErrorStack) -> Self
fn from(source: ErrorStack) -> Self
Converts to this type from the input type.
sourceimpl From<Infallible> for TpmError
impl From<Infallible> for TpmError
sourcefn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Converts to this type from the input type.
sourceimpl From<ParseIntError> for TpmError
impl From<ParseIntError> for TpmError
sourcefn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for TpmError
impl Send for TpmError
impl Sync for TpmError
impl Unpin for TpmError
impl !UnwindSafe for TpmError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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