Enum webrtc_dtls::curve::named_curve::NamedCurve
source · #[repr(u16)]
pub enum NamedCurve {
Unsupported,
P256,
P384,
X25519,
}
Variants§
Implementations§
source§impl NamedCurve
impl NamedCurve
pub fn generate_keypair(&self) -> Result<NamedCurveKeypair, Error>
Trait Implementations§
source§impl Clone for NamedCurve
impl Clone for NamedCurve
source§fn clone(&self) -> NamedCurve
fn clone(&self) -> NamedCurve
Returns a copy of the value. Read more
1.0.0 · 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 NamedCurve
impl Debug for NamedCurve
source§impl From<u16> for NamedCurve
impl From<u16> for NamedCurve
source§impl PartialEq<NamedCurve> for NamedCurve
impl PartialEq<NamedCurve> for NamedCurve
source§fn eq(&self, other: &NamedCurve) -> bool
fn eq(&self, other: &NamedCurve) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.