#[non_exhaustive]pub enum KeyAlgorithm {
Rsa2048,
Rsa4096,
EcdsaP256,
EcdsaP384,
Ed25519,
Aes128,
Aes256,
}Expand description
Key algorithm.
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.
Rsa2048
RSA 2048-bit key.
Rsa4096
RSA 4096-bit key.
EcdsaP256
ECDSA with P-256 curve (secp256r1).
EcdsaP384
ECDSA with P-384 curve (secp384r1).
Ed25519
Ed25519 (EdDSA).
Aes128
AES 128-bit symmetric key.
Aes256
AES 256-bit symmetric key.
Trait Implementations§
Source§impl Clone for KeyAlgorithm
impl Clone for KeyAlgorithm
Source§fn clone(&self) -> KeyAlgorithm
fn clone(&self) -> KeyAlgorithm
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 moreimpl Copy for KeyAlgorithm
Source§impl Debug for KeyAlgorithm
impl Debug for KeyAlgorithm
Source§impl<'de> Deserialize<'de> for KeyAlgorithm
impl<'de> Deserialize<'de> for KeyAlgorithm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for KeyAlgorithm
impl Display for KeyAlgorithm
impl Eq for KeyAlgorithm
Source§impl From<KeyAlgorithm> for String
impl From<KeyAlgorithm> for String
Source§fn from(a: KeyAlgorithm) -> String
fn from(a: KeyAlgorithm) -> String
Converts to this type from the input type.
Source§impl FromStr for KeyAlgorithm
impl FromStr for KeyAlgorithm
Source§impl PartialEq for KeyAlgorithm
impl PartialEq for KeyAlgorithm
Source§fn eq(&self, other: &KeyAlgorithm) -> bool
fn eq(&self, other: &KeyAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KeyAlgorithm
impl Serialize for KeyAlgorithm
impl StructuralPartialEq for KeyAlgorithm
Auto Trait Implementations§
impl Freeze for KeyAlgorithm
impl RefUnwindSafe for KeyAlgorithm
impl Send for KeyAlgorithm
impl Sync for KeyAlgorithm
impl Unpin for KeyAlgorithm
impl UnsafeUnpin for KeyAlgorithm
impl UnwindSafe for KeyAlgorithm
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