Skip to main content

CanWrapError

Trait CanWrapError 

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

Required Methods§

Source

fn wrap_error( error: <Self as HasErrorType>::Error, detail: Detail, ) -> <Self as HasErrorType>::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> CanWrapError<Detail> for __Context__
where __Context__: HasErrorType + ErrorWrapper<__Context__, Detail>,