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

pub enum SslMethod {
    Sslv23,
    Tlsv1,
}

Determines the SSL method supported

Variants

Sslv23

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

Tlsv1

Only support the TLSv1 protocol.

Methods

impl SslMethod

fn is_dtls(&self) -> bool

fn is_dtlsv1(&self) -> bool

fn is_dtlsv1_2(&self) -> bool

Trait Implementations

Derived Implementations

impl Eq for SslMethod

impl PartialEq for SslMethod

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

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

impl Hash for SslMethod

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

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

impl Debug for SslMethod

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

impl Clone for SslMethod

fn clone(&self) -> SslMethod

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

impl Copy for SslMethod