[][src]Struct security_framework::secure_transport::SslProtocol

pub struct SslProtocol(_);

Specifies protocol versions.

Implementations

impl SslProtocol[src]

pub const UNKNOWN: Self[src]

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

pub const SSL3: Self[src]

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

pub const TLS1: Self[src]

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

pub const TLS11: Self[src]

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

pub const TLS12: Self[src]

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

pub const TLS13: Self[src]

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

pub const SSL2: Self[src]

Only the SSL 2.0 protocol is accepted.

pub const DTLS1: Self[src]

The DTLSv1 protocol is preferred.

pub const SSL3_ONLY: Self[src]

Only the SSL 3.0 protocol is accepted.

pub const TLS1_ONLY: Self[src]

Only the TLS 1.0 protocol is accepted.

pub const ALL: Self[src]

All supported TLS/SSL versions are accepted.

Trait Implementations

impl Clone for SslProtocol[src]

impl Copy for SslProtocol[src]

impl Debug for SslProtocol[src]

impl Eq for SslProtocol[src]

impl PartialEq<SslProtocol> for SslProtocol[src]

impl StructuralEq for SslProtocol[src]

impl StructuralPartialEq for SslProtocol[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.