pub trait Context<T> {
// Required method
fn with_context<C>(self, context: impl FnOnce() -> C) -> Result<T>
where C: Into<ErrorResponse>;
// Provided method
fn context<C>(self, context: C) -> Result<T>
where Self: Sized,
C: Into<ErrorResponse> { ... }
}
Required Methods§
fn with_context<C>(self, context: impl FnOnce() -> C) -> Result<T>where
C: Into<ErrorResponse>,
Provided Methods§
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.