Skip to main content

WrapStructError

Trait WrapStructError 

Source
pub trait WrapStructError<R: DomainReason>: Sized {
    // Required method
    fn wrap(self, reason: R) -> StructError<R>;
}

Required Methods§

Source

fn wrap(self, reason: R) -> 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.

Implementors§

Source§

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