pub enum TlsVersion {
Tls12,
Tls13,
}Expand description
TLS protocol version.
Variants§
Implementations§
Source§impl TlsVersion
impl TlsVersion
Sourcepub const ALL: &'static [TlsVersion]
pub const ALL: &'static [TlsVersion]
All known TLS versions, in ascending order.
Trait Implementations§
Source§impl Clone for TlsVersion
impl Clone for TlsVersion
Source§fn clone(&self) -> TlsVersion
fn clone(&self) -> TlsVersion
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 moreimpl Copy for TlsVersion
Source§impl Debug for TlsVersion
impl Debug for TlsVersion
Source§impl Display for TlsVersion
impl Display for TlsVersion
impl Eq for TlsVersion
Source§impl FromStr for TlsVersion
impl FromStr for TlsVersion
Source§impl Hash for TlsVersion
impl Hash for TlsVersion
Source§impl PartialEq for TlsVersion
impl PartialEq for TlsVersion
Source§fn eq(&self, other: &TlsVersion) -> bool
fn eq(&self, other: &TlsVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.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