pub trait ContextError<E> {
// Required method
fn context<M: AlienErrorData + Clone + Debug + Serialize>(
self,
meta: M,
) -> AlienError<M>;
}Expand description
Extension trait for adding context directly to AlienError instances
Required Methods§
Sourcefn context<M: AlienErrorData + Clone + Debug + Serialize>(
self,
meta: M,
) -> AlienError<M>
fn context<M: AlienErrorData + Clone + Debug + Serialize>( self, meta: M, ) -> AlienError<M>
Add context to an AlienError, wrapping it with a new 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.