Enum webrtc_dtls::curve::named_curve::NamedCurve
source · #[repr(u16)]pub enum NamedCurve {
Unsupported = 0,
P256 = 23,
P384 = 24,
X25519 = 29,
}
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 for NamedCurve
impl PartialEq 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 ==
.impl Copy for NamedCurve
impl Eq for NamedCurve
impl StructuralPartialEq for NamedCurve
Auto Trait Implementations§
impl Freeze for NamedCurve
impl RefUnwindSafe for NamedCurve
impl Send for NamedCurve
impl Sync for NamedCurve
impl Unpin for NamedCurve
impl UnwindSafe for NamedCurve
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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