pub struct EncryptionError(pub String);Expand description
Represents an error encountered during encryption or decryption operations.
This error type is used when encryption-related operations fail, such as:
- Invalid key size or format
- Algorithm-specific failures
- Data padding issues
- Authentication failures
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Debug for EncryptionError
impl Debug for EncryptionError
Source§impl Display for EncryptionError
impl Display for EncryptionError
impl Eq for EncryptionError
Source§impl PartialEq for EncryptionError
impl PartialEq for EncryptionError
Source§fn eq(&self, other: &EncryptionError) -> bool
fn eq(&self, other: &EncryptionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EncryptionError
Auto Trait Implementations§
impl Freeze for EncryptionError
impl RefUnwindSafe for EncryptionError
impl Send for EncryptionError
impl Sync for EncryptionError
impl Unpin for EncryptionError
impl UnsafeUnpin for EncryptionError
impl UnwindSafe for EncryptionError
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