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

pub struct SslProtocol(_);

Specifies protocol versions.

Methods

impl SslProtocol[src]

pub const UNKNOWN: SslProtocol[src]

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

pub const SSL3: SslProtocol[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: SslProtocol[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: SslProtocol[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: SslProtocol[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 SSL2: SslProtocol[src]

Only the SSL 2.0 protocol is accepted.

pub const DTLS1: SslProtocol[src]

The DTLSv1 protocol is preferred.

pub const SSL3_ONLY: SslProtocol[src]

Only the SSL 3.0 protocol is accepted.

pub const TLS1_ONLY: SslProtocol[src]

Only the TLS 1.0 protocol is accepted.

pub const ALL: SslProtocol[src]

All supported TLS/SSL versions are accepted.

Trait Implementations

impl Eq for SslProtocol[src]

impl Copy for SslProtocol[src]

impl PartialEq<SslProtocol> for SslProtocol[src]

impl Clone for SslProtocol[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for SslProtocol[src]

Auto Trait Implementations

impl Send for SslProtocol

impl Sync for SslProtocol

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.