Struct Version
pub struct Version(/* private field */);
A TLS protocol version.
Implementations
impl Version
const TLS_1_0: Version = _;Version 1.0 of the TLS protocol.
const TLS_1_1: Version = _;Version 1.1 of the TLS protocol.
const TLS_1_2: Version = _;Version 1.2 of the TLS protocol.
const TLS_1_3: Version = _;Version 1.3 of the TLS protocol.
Trait Implementations
impl Clone for Version
fn clone(&self) -> Version
impl Copy for Version
impl Debug for Version
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Version
impl Ord for Version
fn cmp(&self, other: &Version) -> Ordering
impl PartialEq for Version
fn eq(&self, other: &Version) -> bool
impl PartialOrd for Version
fn partial_cmp(&self, other: &Version) -> Option<Ordering>
impl StructuralPartialEq for Version
Auto Trait Implementations
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
Blanket Implementations
impl<Q, K> Comparable<K> for Version
where
Q: Ord + ?Sized,
K: Borrow<Q> + ?Sized,
fn compare(&self, key: &K) -> Ordering
impl<Q, K> Equivalent<K> for Version
where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
impl<Q, K> Equivalent<K> for Version
where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
impl<T> Any for Version
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Version
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Version
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Version
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Version
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for Version
impl<T> PolicyExt for Version
where
T: ?Sized,
fn and<P, B, E>(self, other: P) -> And<T, P> where T: Sized + Policy<B, E>, P: Policy<B, E>,fn or<P, B, E>(self, other: P) -> Or<T, P> where T: Sized + Policy<B, E>, P: Policy<B, E>,
impl<T> ToOwned for Version
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> WithSubscriber for Version
impl<T, U> Into<U> for Version
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Version
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Version
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>