Enum mariadb::plugin::encryption::KeyError
source · #[non_exhaustive]#[repr(u32)]pub enum KeyError {
InvalidVersion = 4_294_967_295,
BufferTooSmall = 100,
Other = 3,
}
Expand description
Error types returned by key managers
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.
InvalidVersion = 4_294_967_295
A key ID is invalid or not found. Maps to ENCRYPTION_KEY_VERSION_INVALID
in C.
BufferTooSmall = 100
A key buffer is too small. Maps to ENCRYPTION_KEY_BUFFER_TOO_SMALL
in C.
Other = 3
Trait Implementations§
source§impl PartialEq for KeyError
impl PartialEq for KeyError
impl Copy for KeyError
impl Eq for KeyError
impl StructuralPartialEq for KeyError
Auto Trait Implementations§
impl RefUnwindSafe for KeyError
impl Send for KeyError
impl Sync for KeyError
impl Unpin for KeyError
impl UnwindSafe for KeyError
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