pub trait LastError {
// Required method
fn last_error(&self) -> Result<String>;
// Provided method
fn to_error<T>(errstr: String) -> Result<T> { ... }
}
Expand description
Required Methods§
Sourcefn last_error(&self) -> Result<String>
fn last_error(&self) -> Result<String>
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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.