[][src]Trait err_context::BoxedResultExt

pub trait BoxedResultExt<T, E: ?Sized>: BoxedResultSealed {
    fn context<M>(self, msg: M) -> Result<T, BoxContext<M, E>>
    where
        M: Display
;
fn with_context<F, M>(self, f: F) -> Result<T, BoxContext<M, E>>
    where
        F: FnOnce(&Box<E>) -> M,
        M: Display
; }

A ResultExt equivalent for boxed errors.

This trait serves the same purpose and acts in the same ways as the ResultExt, so refer to that for details. It exists merely for implementation purposes.

Required methods

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

A ResultExt::context equivalent.

fn with_context<F, M>(self, f: F) -> Result<T, BoxContext<M, E>> where
    F: FnOnce(&Box<E>) -> M,
    M: Display

Loading content...

Implementations on Foreign Types

impl<T> BoxedResultExt<T, dyn Error + 'static + Sync + Send> for Result<T, Box<dyn Error + Send + Sync>>[src]

impl<T> BoxedResultExt<T, dyn Error + 'static + Send> for Result<T, Box<dyn Error + Send>>[src]

impl<T> BoxedResultExt<T, dyn Error + 'static + Sync> for Result<T, Box<dyn Error + Sync>>[src]

impl<T> BoxedResultExt<T, dyn Error + 'static> for Result<T, Box<dyn Error>>[src]

Loading content...

Implementors

Loading content...