#[non_exhaustive]
pub enum Error {
Tpm(TpmError),
Marshal(MarshalError),
Unmarshal(UnmarshalError),
Auth(AuthError),
Driver(DriverError),
TooManyAuths(usize),
}
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.
Tpm(TpmError)
Marshal(MarshalError)
Unmarshal(UnmarshalError)
Auth(AuthError)
Driver(DriverError)
TooManyAuths(usize)
Trait Implementations
sourceimpl From<DriverError> for Error
impl From<DriverError> for Error
sourcefn from(e: DriverError) -> Self
fn from(e: DriverError) -> Self
Converts to this type from the input type.
sourceimpl From<MarshalError> for Error
impl From<MarshalError> for Error
sourcefn from(e: MarshalError) -> Self
fn from(e: MarshalError) -> Self
Converts to this type from the input type.
sourceimpl From<UnmarshalError> for Error
impl From<UnmarshalError> for Error
sourcefn from(e: UnmarshalError) -> Self
fn from(e: UnmarshalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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