[−][src]Trait err_context::BoxedResultExt
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,
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,
F: FnOnce(&Box<E>) -> M,
M: Display,
A ResultExt::with_context
equivalent.
Implementations on Foreign Types
impl<T> BoxedResultExt<T, dyn Error + 'static + Sync + Send> for Result<T, Box<dyn Error + Send + Sync>>
[src]
fn context<M>(self, msg: M) -> Result<T, BoxContext<M, dyn Error + Send + Sync>> where
M: Display,
[src]
M: Display,
fn with_context<F, M>(
self,
f: F
) -> Result<T, BoxContext<M, dyn Error + Send + Sync>> where
F: FnOnce(&Box<dyn Error + Send + Sync>) -> M,
M: Display,
[src]
self,
f: F
) -> Result<T, BoxContext<M, dyn Error + Send + Sync>> where
F: FnOnce(&Box<dyn Error + Send + Sync>) -> M,
M: Display,
impl<T> BoxedResultExt<T, dyn Error + 'static + Send> for Result<T, Box<dyn Error + Send>>
[src]
fn context<M>(self, msg: M) -> Result<T, BoxContext<M, dyn Error + Send>> where
M: Display,
[src]
M: Display,
fn with_context<F, M>(self, f: F) -> Result<T, BoxContext<M, dyn Error + Send>> where
F: FnOnce(&Box<dyn Error + Send>) -> M,
M: Display,
[src]
F: FnOnce(&Box<dyn Error + Send>) -> M,
M: Display,
impl<T> BoxedResultExt<T, dyn Error + 'static + Sync> for Result<T, Box<dyn Error + Sync>>
[src]
fn context<M>(self, msg: M) -> Result<T, BoxContext<M, dyn Error + Sync>> where
M: Display,
[src]
M: Display,
fn with_context<F, M>(self, f: F) -> Result<T, BoxContext<M, dyn Error + Sync>> where
F: FnOnce(&Box<dyn Error + Sync>) -> M,
M: Display,
[src]
F: FnOnce(&Box<dyn Error + Sync>) -> M,
M: Display,
impl<T> BoxedResultExt<T, dyn Error + 'static> for Result<T, Box<dyn Error>>
[src]
fn context<M>(self, msg: M) -> Result<T, BoxContext<M, dyn Error>> where
M: Display,
[src]
M: Display,
fn with_context<F, M>(self, f: F) -> Result<T, BoxContext<M, dyn Error>> where
F: FnOnce(&Box<dyn Error>) -> M,
M: Display,
[src]
F: FnOnce(&Box<dyn Error>) -> M,
M: Display,