Struct openssl::ssl::Ssl [] [src]

pub struct Ssl {
    // some fields omitted
}

Methods

impl Ssl
[src]

fn new(ctx: &SslContext) -> Result<SslSslError>

fn state_string(&self) -> &'static str

fn state_string_long(&self) -> &'static str

fn set_hostname(&self, hostname: &str) -> Result<()SslError>

Sets the host name to be used with SNI (Server Name Indication).

fn peer_certificate(&self) -> Option<X509>

Returns the certificate of the peer, if present.

fn pending(&self) -> usize

Returns the number of bytes remaining in the currently processed TLS record.

fn compression(&self) -> Option<String>

Returns the compression currently in use.

The result will be either None, indicating no compression is in use, or a string with the compression name.

fn get_ssl_method(&self) -> Option<SslMethod>

Trait Implementations

impl Send for Ssl
[src]

impl Sync for Ssl
[src]

impl Debug for Ssl
[src]

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

Formats the value using the given formatter.

impl Drop for Ssl
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more

impl IntoSsl for Ssl
[src]

fn into_ssl(self) -> Result<SslSslError>