pub trait BoxedErrorExt<E: ?Sized>: BoxedSealed + Sized {
// Required methods
fn context<M: Display>(self, msg: M) -> BoxContext<M, E>;
fn chain(&self) -> Chain<'_> ⓘ;
// Provided methods
fn find_source<T: Error + 'static>(&self) -> Option<&T> { ... }
fn display<S: Display>(&self, separator: S) -> DisplayChain<'_, S> { ... }
}
Expand description
Required Methods§
Sourcefn context<M: Display>(self, msg: M) -> BoxContext<M, E>
fn context<M: Display>(self, msg: M) -> BoxContext<M, E>
Equivalent of ErrorExt::context
.
Sourcefn chain(&self) -> Chain<'_> ⓘ
fn chain(&self) -> Chain<'_> ⓘ
Equivalent of ErrorExt::chain
.
Provided Methods§
Sourcefn find_source<T: Error + 'static>(&self) -> Option<&T>
fn find_source<T: Error + 'static>(&self) -> Option<&T>
Equivalent of ErrorExt::find_source
.
Sourcefn display<S: Display>(&self, separator: S) -> DisplayChain<'_, S>
fn display<S: Display>(&self, separator: S) -> DisplayChain<'_, S>
Equivalent of ErrorExt::display
.
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.