Enum openssl::ssl::SslMethod [] [src]

pub enum SslMethod {
    Sslv2,
    Sslv23,
    Sslv3,
    Tlsv1,
    Tlsv1_1,
    Tlsv1_2,
    Dtlsv1,
    Dtlsv1_2,
}

Determines the SSL method supported

Variants

Sslv2

Only support the SSLv2 protocol, requires the sslv2 feature.

Sslv23

Support the SSLv2, SSLv3, TLSv1, TLSv1.1, and TLSv1.2 protocols depending on what the linked OpenSSL library supports.

Sslv3

Only support the SSLv3 protocol.

Tlsv1

Only support the TLSv1 protocol.

Tlsv1_1

Support TLSv1.1 protocol, requires the tlsv1_1 feature.

Tlsv1_2

Support TLSv1.2 protocol, requires the tlsv1_2 feature.

Dtlsv1

Support DTLSv1 protocol, requires the dtlsv1 feature.

Dtlsv1_2

Support DTLSv1.2 protocol, requires the dtlsv1_2 feature.

Trait Implementations

impl Eq for SslMethod
[src]

impl PartialEq for SslMethod
[src]

fn eq(&self, __arg_0: &SslMethod) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Hash for SslMethod
[src]

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl Debug for SslMethod
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for SslMethod
[src]

fn clone(&self) -> SslMethod

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for SslMethod
[src]