Enum openssl::ssl::error::SslError [] [src]

pub enum SslError {
    StreamError(Error),
    SslSessionClosed,
    OpenSslErrors(Vec<OpensslError>),
}

An SSL error

Variants

StreamError(Error)

The underlying stream reported an error

SslSessionClosed

The SSL session has been closed by the other end

OpenSslErrors(Vec<OpensslError>)

An error in the OpenSSL library

Methods

impl SslError
[src]

fn get() -> SslError

Creates a new OpenSslErrors with the current contents of the error stack.

fn from_error(err: c_ulong) -> SslError

Creates an SslError from the raw numeric error code.

Trait Implementations

impl Debug for SslError
[src]

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

Formats the value using the given formatter.

impl Display for SslError
[src]

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

Formats the value using the given formatter.

impl Error for SslError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

The lower-level cause of this error, if any. Read more