pub enum DtlsVersion {
V1_2,
V1_3,
}Expand description
DTLS protocol version.
RFC 9483 §5 supports both DTLS 1.2 (RFC 6347) and DTLS 1.3 (RFC 9147). DTLS 1.3 is preferred when both peers support it, as it reduces handshake round trips and provides improved security properties.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for DtlsVersion
impl Clone for DtlsVersion
Source§fn clone(&self) -> DtlsVersion
fn clone(&self) -> DtlsVersion
Returns a duplicate 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 DtlsVersion
impl Debug for DtlsVersion
Source§impl Hash for DtlsVersion
impl Hash for DtlsVersion
Source§impl PartialEq for DtlsVersion
impl PartialEq for DtlsVersion
impl Copy for DtlsVersion
impl Eq for DtlsVersion
impl StructuralPartialEq for DtlsVersion
Auto Trait Implementations§
impl Freeze for DtlsVersion
impl RefUnwindSafe for DtlsVersion
impl Send for DtlsVersion
impl Sync for DtlsVersion
impl Unpin for DtlsVersion
impl UnsafeUnpin for DtlsVersion
impl UnwindSafe for DtlsVersion
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