pub enum Error {
Rustls(Error),
Base64Decode(Error),
Default(String),
CertLoading(Vec<Error>),
NoSystemCertsAdded {
failed: usize,
},
Api(String),
Key(Error),
Url(String),
User(Error),
OpenPgp(Error),
}
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(Vec<Error>)
The loading of TLS root certificates from the platform’s native certificate store failed
NoSystemCertsAdded
No TLS root certificates from the platform’s native certificate store could be added
Provides the number certificates that failed to be added
Api(String)
A call to the NetHSM API failed
Key(Error)
An error with a key occurred
Url(String)
URL is invalid
User(Error)
User data error
OpenPgp(Error)
OpenPGP error
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)>
Returns 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