pub trait Context<T, E> {
// Required method
fn context<M: AlienErrorData + Clone + Debug + Serialize>(
self,
meta: M,
) -> Result<T, AlienError<M>>;
}Expand description
Extension trait for adding context to AlienError Results
Required Methods§
Sourcefn context<M: AlienErrorData + Clone + Debug + Serialize>(
self,
meta: M,
) -> Result<T, AlienError<M>>
fn context<M: AlienErrorData + Clone + Debug + Serialize>( self, meta: M, ) -> Result<T, AlienError<M>>
Add context to an AlienError result, 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.