#[non_exhaustive]pub enum TlsVersion {
Tls12,
Tls13,
}Expand description
Minimum TLS protocol version.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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 Default for TlsVersion
impl Default for TlsVersion
Source§fn default() -> TlsVersion
fn default() -> TlsVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TlsVersion
impl<'de> Deserialize<'de> for TlsVersion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq 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 ==.Source§impl Serialize for TlsVersion
impl Serialize 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