#[non_exhaustive]pub enum KeyAgreementAlgorithm {
EcdhP256,
EcdhP384,
EcdhP521,
X25519,
}Expand description
A key-agreement algorithm outside TLS: Diffie-Hellman on a curve (SP 800-56A Rev. 3; RFC
7748). TLS key exchange is KxGroup.
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.
EcdhP256
ECDH on P-256 (SP 800-56A Rev. 3, SP 800-186).
EcdhP384
ECDH on P-384 (SP 800-56A Rev. 3, SP 800-186).
EcdhP521
ECDH on P-521 (SP 800-56A Rev. 3, SP 800-186).
X25519
X25519 (RFC 7748).
Implementations§
Trait Implementations§
Source§impl Clone for KeyAgreementAlgorithm
impl Clone for KeyAgreementAlgorithm
Source§fn clone(&self) -> KeyAgreementAlgorithm
fn clone(&self) -> KeyAgreementAlgorithm
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 KeyAgreementAlgorithm
Source§impl Debug for KeyAgreementAlgorithm
impl Debug for KeyAgreementAlgorithm
Source§impl Display for KeyAgreementAlgorithm
impl Display for KeyAgreementAlgorithm
impl Eq for KeyAgreementAlgorithm
Source§impl FromStr for KeyAgreementAlgorithm
impl FromStr for KeyAgreementAlgorithm
Source§type Err = ParseAlgorithmError
type Err = ParseAlgorithmError
The associated error which can be returned from parsing.
Source§fn from_str(
s: &str,
) -> Result<KeyAgreementAlgorithm, <KeyAgreementAlgorithm as FromStr>::Err>
fn from_str( s: &str, ) -> Result<KeyAgreementAlgorithm, <KeyAgreementAlgorithm as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for KeyAgreementAlgorithm
impl Hash for KeyAgreementAlgorithm
Source§impl PartialEq for KeyAgreementAlgorithm
impl PartialEq for KeyAgreementAlgorithm
impl StructuralPartialEq for KeyAgreementAlgorithm
Auto Trait Implementations§
impl Forget for KeyAgreementAlgorithm
impl Freeze for KeyAgreementAlgorithm
impl Move for KeyAgreementAlgorithm
impl RefUnwindSafe for KeyAgreementAlgorithm
impl Send for KeyAgreementAlgorithm
impl Sync for KeyAgreementAlgorithm
impl Unpin for KeyAgreementAlgorithm
impl UnsafeUnpin for KeyAgreementAlgorithm
impl UnwindSafe for KeyAgreementAlgorithm
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