#[repr(u8)]pub enum EcdhVariant {
P256 = 0,
P384 = 1,
P521 = 2,
}Expand description
The served curves. (Each algorithm interface names its closed set
of parameterizations <algorithm>-variant; ECDH’s parameter is
the curve alone.)
Variants§
P256 = 0
NIST P-256 (secp256r1).
P384 = 1
NIST P-384 (secp384r1).
P521 = 2
NIST P-521 (secp521r1). Declared because the WebCrypto
registry serves it and enum growth is breaking; no current
implementation of this package serves it — expect
error.unsupported unless composed with a provider that
specifically offers it.
Trait Implementations§
Source§impl Clone for EcdhVariant
impl Clone for EcdhVariant
Source§fn clone(&self) -> EcdhVariant
fn clone(&self) -> EcdhVariant
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 EcdhVariant
impl Debug for EcdhVariant
Source§impl From<EcdhVariant> for EcdhVariant
impl From<EcdhVariant> for EcdhVariant
Source§fn from(variant: EcdhVariant) -> Self
fn from(variant: EcdhVariant) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EcdhVariant
impl PartialEq for EcdhVariant
Source§fn eq(&self, other: &EcdhVariant) -> bool
fn eq(&self, other: &EcdhVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.impl ComponentType for EcdhVariant
impl Copy for EcdhVariant
impl Eq for EcdhVariant
impl Lift for EcdhVariant
impl Lower for EcdhVariant
impl StructuralPartialEq for EcdhVariant
Auto Trait Implementations§
impl Freeze for EcdhVariant
impl RefUnwindSafe for EcdhVariant
impl Send for EcdhVariant
impl Sync for EcdhVariant
impl Unpin for EcdhVariant
impl UnsafeUnpin for EcdhVariant
impl UnwindSafe for EcdhVariant
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more