[][src]Trait err_context::BoxedErrorExt

pub trait BoxedErrorExt<E: ?Sized>: BoxedSealed + Sized {
    fn context<M: Display>(self, msg: M) -> BoxContext<M, E>;
fn chain(&self) -> Chain<'_>

Notable traits for Chain<'a>

impl<'a> Iterator for Chain<'a> type Item = &'a (dyn Error + 'static);
; fn find_source<T: Error + 'static>(&self) -> Option<&T> { ... }
fn display<S: Display>(&self, separator: S) -> DisplayChain<'_, S> { ... } }

An equivalent of ErrorExt for boxed errors.

This is effectively the same trait as ErrorExt, but for boxed errors. It exists separately purely for implementation reasons.

Required methods

fn context<M: Display>(self, msg: M) -> BoxContext<M, E>

Equivalent of ErrorExt::context.

fn chain(&self) -> Chain<'_>

Notable traits for Chain<'a>

impl<'a> Iterator for Chain<'a> type Item = &'a (dyn Error + 'static);

Equivalent of ErrorExt::chain.

Loading content...

Provided methods

fn find_source<T: Error + 'static>(&self) -> Option<&T>

Equivalent of ErrorExt::find_source.

fn display<S: Display>(&self, separator: S) -> DisplayChain<'_, S>

Equivalent of ErrorExt::display.

Loading content...

Implementations on Foreign Types

impl BoxedErrorExt<dyn Error + 'static + Sync + Send> for Box<dyn Error + Send + Sync>[src]

impl BoxedErrorExt<dyn Error + 'static + Send> for Box<dyn Error + Send>[src]

impl BoxedErrorExt<dyn Error + 'static + Sync> for Box<dyn Error + Sync>[src]

impl BoxedErrorExt<dyn Error + 'static> for Box<dyn Error>[src]

Loading content...

Implementors

Loading content...