Trait StdErrorExt
Source pub trait StdErrorExt{
// Provided methods
fn as_chain(&self) -> String { ... }
fn into_boxed(self) -> BoxError
where Self: Sized + Send + Sync + 'static { ... }
}
Expand description
Extension methods for std errors.
Format this error as a chain of colon separated strings built from this error and all
recursive sources.
Can be used to log errors like this:
error!(error = error.as_chain(), "cannot do this or that");
Converts this error – given it implements Sized
+ Send
+Sync
and 'static
– into a
BoxError.