pub trait WithContext<C> {
type ContextError;
// Required method
fn with_context(self, context: C) -> Self::ContextError;
}Expand description
Add context to object
Required Associated Types§
type ContextError
Required Methods§
fn with_context(self, context: C) -> Self::ContextError
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".