Skip to main content

ErrorWrap

Trait ErrorWrap 

Source
pub trait ErrorWrap<T, R: DomainReason>: Sized {
    // Required method
    fn err_wrap(self, reason: R) -> Result<T, StructError<R>>;
}

Required Methods§

Source

fn err_wrap(self, reason: R) -> Result<T, StructError<R>>

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.

Implementations on Foreign Types§

Source§

impl<T, R1, R2> ErrorWrap<T, R2> for Result<T, StructError<R1>>
where R1: DomainReason + ErrorCode + Display + Debug + Send + Sync + 'static, R2: DomainReason,

Source§

fn err_wrap(self, reason: R2) -> Result<T, StructError<R2>>

Implementors§