Struct openssl::error::Error [] [src]

pub struct Error(_);

An error reported from OpenSSL.

Methods

impl Error
[src]

fn get() -> Option<Error>

Returns the first error on the OpenSSL error stack.

fn error_code(&self) -> c_ulong

Returns the raw OpenSSL error code for this error.

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

Returns the name of the library reporting the error.

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

Returns the name of the function reporting the error.

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

Returns the reason for the error.

Trait Implementations

impl Debug for Error
[src]

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

Formats the value using the given formatter.

impl Display for Error
[src]

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

Formats the value using the given formatter.

impl Error for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

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

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