Enum mariadb::plugin::encryption::EncryptionError
source · #[non_exhaustive]#[repr(i32)]pub enum EncryptionError {
Data = -100,
KeySize = -102,
Other = -101,
}
Expand description
Errors returned by encryption operations
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Data = -100
There is an error with the data
KeySize = -102
The provided key size is incorrect
Other = -101
Generic error; return this for e.g. insufficient data length
Trait Implementations§
source§impl Clone for EncryptionError
impl Clone for EncryptionError
source§fn clone(&self) -> EncryptionError
fn clone(&self) -> EncryptionError
Returns a copy 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 EncryptionError
impl Debug for EncryptionError
source§impl PartialEq for EncryptionError
impl PartialEq for EncryptionError
source§fn eq(&self, other: &EncryptionError) -> bool
fn eq(&self, other: &EncryptionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EncryptionError
impl Eq for EncryptionError
impl StructuralPartialEq for EncryptionError
Auto Trait Implementations§
impl RefUnwindSafe for EncryptionError
impl Send for EncryptionError
impl Sync for EncryptionError
impl Unpin 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