pub enum E2eError {
TooShort,
DecryptionFailed,
EncryptionFailed,
}Expand description
Errors returned by end-to-end client-to-gateway encryption helpers.
Variants§
TooShort
The ciphertext was too short to contain the required header and tag.
DecryptionFailed
Authentication failed or the wrong key was used.
EncryptionFailed
Encryption failed unexpectedly.
Trait Implementations§
Source§impl Error for E2eError
impl Error for E2eError
1.30.0 · 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 E2eError
impl RefUnwindSafe for E2eError
impl Send for E2eError
impl Sync for E2eError
impl Unpin for E2eError
impl UnsafeUnpin for E2eError
impl UnwindSafe for E2eError
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