#[non_exhaustive]pub enum ProviderEncryptionAlgorithm {
EciesP256,
Other(String),
}Expand description
Encryption algorithm used for ECIES sealed-box parameter encryption.
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.
EciesP256
Other(String)
An unknown value received from a newer peer.
The inner string is the raw value as it appeared on the wire.
Implementations§
Source§impl ProviderEncryptionAlgorithm
impl ProviderEncryptionAlgorithm
Sourcepub const KNOWN_VARIANTS: &'static [ProviderEncryptionAlgorithm]
pub const KNOWN_VARIANTS: &'static [ProviderEncryptionAlgorithm]
All known (non-Other) variants. Used in tests for exhaustive iteration
(strum::EnumIter is incompatible with the Other(String) tuple variant).
Trait Implementations§
Source§impl Clone for ProviderEncryptionAlgorithm
impl Clone for ProviderEncryptionAlgorithm
Source§fn clone(&self) -> ProviderEncryptionAlgorithm
fn clone(&self) -> ProviderEncryptionAlgorithm
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 ProviderEncryptionAlgorithm
impl Debug for ProviderEncryptionAlgorithm
Source§impl<'de> Deserialize<'de> for ProviderEncryptionAlgorithm
impl<'de> Deserialize<'de> for ProviderEncryptionAlgorithm
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProviderEncryptionAlgorithm
Source§impl From<String> for ProviderEncryptionAlgorithm
impl From<String> for ProviderEncryptionAlgorithm
impl StructuralPartialEq for ProviderEncryptionAlgorithm
Auto Trait Implementations§
impl Freeze for ProviderEncryptionAlgorithm
impl RefUnwindSafe for ProviderEncryptionAlgorithm
impl Send for ProviderEncryptionAlgorithm
impl Sync for ProviderEncryptionAlgorithm
impl Unpin for ProviderEncryptionAlgorithm
impl UnsafeUnpin for ProviderEncryptionAlgorithm
impl UnwindSafe for ProviderEncryptionAlgorithm
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.