Struct boringssl::SslError [] [src]

pub struct SslError { /* fields omitted */ }

SslError is a packed representation of an internal error in the SSL library. When a function fails, it adds an entry to a per-thread error queue. SslError::get() can be used to retrive those items in the queue. As an error might occour deep in the call queue, multiple entries might be added to the error queue. The first (least recent) error is the most specific.

Methods

impl SslError
[src]

Gets the packed error code for the least recent error and removes that error from the queue. If there are no errors in the queue then it returns None.

Acts like get(), but does not remove the error from the error queue.

Returns a string representation of the library that generated the error.

Returns a string representation of the reason for the error.

Clears the error queue for the current thread.

Trait Implementations

impl Debug for SslError
[src]

Formats the value using the given formatter.

impl Display for SslError
[src]

Formats the value using the given formatter. Read more

impl Error for SslError
[src]

A short description of the error. Read more

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