[−][src]Trait tokio_libtls::prelude::error::LastError
Returns the last API error.
The Tls
and TlsConfig
structs both provide a way to return
the last error as a String from the underlying API.
Required methods
fn last_error(&self) -> Result<String, TlsError>
Return the last error of the underlying API.
The last_error
method returns an error if no error occurred
at all, or if memory allocation failed while trying to assemble the
string describing the most recent error related to config.
Provided methods
Loading content...Implementations on Foreign Types
impl LastError for Tls
[src]
fn last_error(&self) -> Result<String, TlsError>
[src]
Returns the last error of the TLS context.
The last_error
method returns an error if no error occurred with
the TLS context during or since the last call to tls_handshake
,
tls_read
, tls_write
, tls_close
, or reset
involving the context,
or if memory allocation failed while trying to assemble the string
describing the most recent error related to the context.
See also
fn to_error<T>(errstr: String) -> Result<T, TlsError>
[src]
impl LastError for TlsConfig
[src]
fn last_error(&self) -> Result<String, TlsError>
[src]
Returns the configuration last error.
The last_error
method returns an error if no error occurred with config
at all, or if memory allocation failed while trying to assemble the
string describing the most recent error related to config.