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]
fn get() -> Option<SslError>
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.
fn peek() -> Option<SslError>
Acts like get(), but does not remove the error from the error queue.
fn lib(&self) -> &'static str
Returns a string representation of the library that generated the error.
fn reason(&self) -> &'static str
Returns a string representation of the reason for the error.
fn clear()
Clears the error queue for the current thread.