pub enum GmsslError {
LibraryError(&'static str),
InvalidKey(&'static str),
InvalidInput(&'static str),
IoError(Error),
VerificationFailed,
DecryptionFailed,
}Expand description
Errors that can occur when using the GmSSL library.
Variants§
LibraryError(&'static str)
The underlying C library returned a failure.
InvalidKey(&'static str)
An invalid key was provided (wrong size, bad format).
InvalidInput(&'static str)
Invalid input parameters.
IoError(Error)
An I/O error occurred (file not found, permission denied, etc.).
VerificationFailed
Signature verification failed (the signature does not match).
DecryptionFailed
Decryption failed (bad padding, wrong key, tag mismatch).
Trait Implementations§
Source§impl Debug for GmsslError
impl Debug for GmsslError
Source§impl Display for GmsslError
impl Display for GmsslError
Source§impl Error for GmsslError
impl Error for GmsslError
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 GmsslError
impl !RefUnwindSafe for GmsslError
impl Send for GmsslError
impl Sync for GmsslError
impl Unpin for GmsslError
impl UnsafeUnpin for GmsslError
impl !UnwindSafe for GmsslError
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