cgp_error

Trait CanWrapError

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

Required Methods§

Source

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

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.

Implementors§

Source§

impl<Context, Detail> CanWrapError<Detail> for Context
where Context: HasErrorType + HasComponents, Context::Components: ErrorWrapper<Context, Detail>,