pub enum TlsVersion {
Tls12,
Tls13,
}Expand description
Supported protocol bounds for TCP TLS. QUIC always uses TLS 1.3.
Variants§
Trait Implementations§
Source§impl Clone for TlsVersion
impl Clone for TlsVersion
impl Copy for TlsVersion
Source§impl Debug for TlsVersion
impl Debug for TlsVersion
Source§impl Default for TlsVersion
impl Default for TlsVersion
impl Eq for TlsVersion
Source§impl FromStr for TlsVersion
impl FromStr for TlsVersion
Source§impl Ord for TlsVersion
impl Ord for TlsVersion
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TlsVersion
impl PartialEq for TlsVersion
Source§impl PartialOrd for TlsVersion
impl PartialOrd for TlsVersion
impl StructuralPartialEq for TlsVersion
Auto Trait Implementations§
impl Freeze for TlsVersion
impl RefUnwindSafe for TlsVersion
impl Send for TlsVersion
impl Sync for TlsVersion
impl Unpin for TlsVersion
impl UnsafeUnpin for TlsVersion
impl UnwindSafe for TlsVersion
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