Skip to main content

SslProtocol

Struct SslProtocol 

Source
pub struct SslProtocol(/* private fields */);
Expand description

Specifies protocol versions.

Implementations§

Source§

impl SslProtocol

Source

pub const ALL: Self

All supported TLS/SSL versions are accepted.

Source

pub const DTLS1: Self

The DTLSv1 protocol is preferred.

Source

pub const SSL2: Self

Only the SSL 2.0 protocol is accepted.

Source

pub const SSL3: Self

The SSL 3.0 protocol is preferred, though SSL 2.0 may be used if the peer does not support SSL 3.0.

Source

pub const SSL3_ONLY: Self

Only the SSL 3.0 protocol is accepted.

Source

pub const TLS1: Self

The TLS 1.0 protocol is preferred, though lower versions may be used if the peer does not support TLS 1.0.

Source

pub const TLS11: Self

The TLS 1.1 protocol is preferred, though lower versions may be used if the peer does not support TLS 1.1.

Source

pub const TLS12: Self

The TLS 1.2 protocol is preferred, though lower versions may be used if the peer does not support TLS 1.2.

Source

pub const TLS13: Self

The TLS 1.3 protocol is preferred, though lower versions may be used if the peer does not support TLS 1.3.

Source

pub const TLS1_ONLY: Self

Only the TLS 1.0 protocol is accepted.

Source

pub const UNKNOWN: Self

No protocol has been or should be negotiated or specified; use the default.

Trait Implementations§

Source§

impl Clone for SslProtocol

Source§

fn clone(&self) -> SslProtocol

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SslProtocol

Source§

impl Debug for SslProtocol

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for SslProtocol

Source§

impl PartialEq for SslProtocol

Source§

fn eq(&self, other: &SslProtocol) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for SslProtocol

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.