pub trait SourceRawErr<T, R: DomainReason>: Sized {
// Required method
fn source_raw_err(
self,
reason: R,
detail: impl Into<String>,
) -> Result<T, StructError<R>>;
}Expand description
Like SourceErr::source_err but accepts any StdError.
Internally wraps the error with any_err so the sealed
UnstructuredSource bound is satisfied without weakening the
sealing contract.
Required Methods§
fn source_raw_err( self, reason: R, detail: impl Into<String>, ) -> 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.