CanWrapError

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__