Enum openssl::ssl::SslMethod [−][src]
pub enum SslMethod {
Sslv23,
Tlsv1,
}Determines the SSL method supported
Variants
Sslv23Support the SSLv2, SSLv3, TLSv1, TLSv1.1, and TLSv1.2 protocols depending on what the linked OpenSSL library supports.
Tlsv1Only support the TLSv1 protocol.
Methods
impl SslMethod[src]
impl SslMethodpub fn is_dtls(&self) -> bool[src]
pub fn is_dtls(&self) -> boolpub fn is_dtlsv1(&self) -> bool[src]
pub fn is_dtlsv1(&self) -> boolpub fn is_dtlsv1_2(&self) -> bool[src]
pub fn is_dtlsv1_2(&self) -> boolTrait Implementations
impl Copy for SslMethod[src]
impl Copy for SslMethodimpl Clone for SslMethod[src]
impl Clone for SslMethodfn clone(&self) -> SslMethod[src]
fn clone(&self) -> SslMethodReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for SslMethod[src]
impl Debug for SslMethodfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for SslMethod[src]
impl Hash for SslMethodfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl PartialEq for SslMethod[src]
impl PartialEq for SslMethodfn eq(&self, other: &SslMethod) -> bool[src]
fn eq(&self, other: &SslMethod) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for SslMethod[src]
impl Eq for SslMethod