pub enum Error {
Rustls(Error),
Base64Decode(Error),
Default(String),
CertLoading,
Api(String),
KeyData(String),
KeyImport(String),
}Variants§
Rustls(Error)
Wraps a rustls::Error for issues with rustls based TLS setups
Base64Decode(Error)
A Base64 encoded string can not be decode
Default(String)
A generic error with a custom message
CertLoading
The loading of TLS root certificates from the platform’s native certificate store failed
Api(String)
A call to the NetHSM API failed
KeyData(String)
Provided key data is invalid
KeyImport(String)
Importing a key failed because of insufficient or malformed data
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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