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
SslSessionClosedThe SSL session has been closed by the other end
OpenSslErrors(Vec<OpensslError>)An error in the OpenSSL library
Methods
impl SslError[src]
impl SslErrorpub fn get() -> SslError[src]
pub fn get() -> SslErrorCreates a new OpenSslErrors with the current contents of the error
stack.
pub fn from_error(err: c_ulong) -> SslError[src]
pub fn from_error(err: c_ulong) -> SslErrorCreates an SslError from the raw numeric error code.
Trait Implementations
impl Debug for SslError[src]
impl Debug for SslErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for SslError[src]
impl Display for SslErrorfn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for SslError[src]
impl Error for SslErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>[src]
fn cause(&self) -> Option<&Error>The lower-level cause of this error, if any. Read more
impl From<SslError> for NonblockingSslError[src]
impl From<SslError> for NonblockingSslErrorfn from(e: SslError) -> NonblockingSslError[src]
fn from(e: SslError) -> NonblockingSslErrorPerforms the conversion.