pub enum AlgorithmError {
AlgorithmMismatch(String, String),
InvalidSecrets(String),
InvalidMeta(String),
SignatureMissing,
KeyDerivation(String),
Nonce,
Ephemeral,
Encrypt(String),
Decrypt(String),
Error(String),
}Variants§
AlgorithmMismatch(String, String)
InvalidSecrets(String)
InvalidMeta(String)
SignatureMissing
KeyDerivation(String)
Nonce
Ephemeral
Encrypt(String)
Decrypt(String)
Error(String)
Trait Implementations§
Source§impl Clone for AlgorithmError
impl Clone for AlgorithmError
Source§fn clone(&self) -> AlgorithmError
fn clone(&self) -> AlgorithmError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlgorithmError
impl Debug for AlgorithmError
Source§impl Display for AlgorithmError
impl Display for AlgorithmError
Source§impl Error for AlgorithmError
impl Error for AlgorithmError
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()
Source§impl PartialEq for AlgorithmError
impl PartialEq for AlgorithmError
impl Eq for AlgorithmError
impl StructuralPartialEq for AlgorithmError
Auto Trait Implementations§
impl Freeze for AlgorithmError
impl RefUnwindSafe for AlgorithmError
impl Send for AlgorithmError
impl Sync for AlgorithmError
impl Unpin for AlgorithmError
impl UnsafeUnpin for AlgorithmError
impl UnwindSafe for AlgorithmError
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