Skip to main content

CanWrapError

Trait CanWrapError 

Source
pub trait CanWrapError<Detail>: HasErrorType {
    // Required method
    fn wrap_error(detail: Detail, error: Self::Error) -> Self::Error;
}

Required Methods§

Source

fn wrap_error(detail: Detail, error: Self::Error) -> Self::Error

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<Context, Detail, Error> CanWrapError<Detail> for Context
where Context: HasErrorType<Error = Error> + CanRaiseError<WrapError<Detail, Error>>,