#[non_exhaustive]pub enum InnerCipherConfig {
Plain,
Salsa20,
ChaCha20,
}Expand description
Choices for encrypting protected values inside of databases
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.
Plain
Don’t encrypt proected values
Salsa20
Encrypt protected values with Salsa20
ChaCha20
Encrypt protected values with ChaCha20
Trait Implementations§
Source§impl Clone for InnerCipherConfig
impl Clone for InnerCipherConfig
Source§fn clone(&self) -> InnerCipherConfig
fn clone(&self) -> InnerCipherConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InnerCipherConfig
impl Debug for InnerCipherConfig
impl Eq for InnerCipherConfig
Source§impl PartialEq for InnerCipherConfig
impl PartialEq for InnerCipherConfig
impl StructuralPartialEq for InnerCipherConfig
Auto Trait Implementations§
impl Freeze for InnerCipherConfig
impl RefUnwindSafe for InnerCipherConfig
impl Send for InnerCipherConfig
impl Sync for InnerCipherConfig
impl Unpin for InnerCipherConfig
impl UnsafeUnpin for InnerCipherConfig
impl UnwindSafe for InnerCipherConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.