#[non_exhaustive]#[repr(u16)]pub enum ProtocolVersion {
Reserved = 0,
Mls10 = 1,
}
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.
Implementations§
Source§impl ProtocolVersion
impl ProtocolVersion
pub fn all_without_spec_default() -> Vec<Self>
Trait Implementations§
Source§impl Clone for ProtocolVersion
impl Clone for ProtocolVersion
Source§fn clone(&self) -> ProtocolVersion
fn clone(&self) -> ProtocolVersion
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 ProtocolVersion
impl Debug for ProtocolVersion
Source§impl Default for ProtocolVersion
impl Default for ProtocolVersion
Source§fn default() -> ProtocolVersion
fn default() -> ProtocolVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProtocolVersion
impl<'de> Deserialize<'de> for ProtocolVersion
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
Source§impl Deserialize for ProtocolVersion
impl Deserialize for ProtocolVersion
Source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
This function deserializes the
bytes
from the provided a std::io::Read
and returns the populated struct. Read moreSource§impl Display for ProtocolVersion
impl Display for ProtocolVersion
Source§impl<'_derivative_strum> From<&'_derivative_strum ProtocolVersion> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum ProtocolVersion> for &'static str
Source§fn from(x: &'_derivative_strum ProtocolVersion) -> &'static str
fn from(x: &'_derivative_strum ProtocolVersion) -> &'static str
Converts to this type from the input type.
Source§impl From<ProtocolVersion> for &'static str
impl From<ProtocolVersion> for &'static str
Source§fn from(x: ProtocolVersion) -> &'static str
fn from(x: ProtocolVersion) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for ProtocolVersion
impl FromStr for ProtocolVersion
Source§impl Ord for ProtocolVersion
impl Ord for ProtocolVersion
Source§fn cmp(&self, other: &ProtocolVersion) -> Ordering
fn cmp(&self, other: &ProtocolVersion) -> Ordering
1.21.0 · 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
Source§impl PartialEq for ProtocolVersion
impl PartialEq for ProtocolVersion
Source§impl PartialOrd for ProtocolVersion
impl PartialOrd for ProtocolVersion
Source§impl Serialize for &ProtocolVersion
impl Serialize for &ProtocolVersion
Source§impl Serialize for ProtocolVersion
impl Serialize for ProtocolVersion
Source§impl Serialize for ProtocolVersion
impl Serialize for ProtocolVersion
Source§impl Size for &ProtocolVersion
impl Size for &ProtocolVersion
fn tls_serialized_len(&self) -> usize
Source§impl Size for ProtocolVersion
impl Size for ProtocolVersion
fn tls_serialized_len(&self) -> usize
Source§impl TryFrom<&str> for ProtocolVersion
impl TryFrom<&str> for ProtocolVersion
impl Copy for ProtocolVersion
impl Eq for ProtocolVersion
impl StructuralPartialEq for ProtocolVersion
Auto Trait Implementations§
impl Freeze for ProtocolVersion
impl RefUnwindSafe for ProtocolVersion
impl Send for ProtocolVersion
impl Sync for ProtocolVersion
impl Unpin for ProtocolVersion
impl UnwindSafe for ProtocolVersion
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