pub trait ServiceErrorExt<Request>: Service<Request> + Sized {
// Provided method
fn with_error_context<C>(self, context: C) -> ErrorRailService<Self, C>
where C: IntoErrorContext + Clone { ... }
}Expand description
Extension trait for easily wrapping services with error context.
Provided Methods§
Sourcefn with_error_context<C>(self, context: C) -> ErrorRailService<Self, C>where
C: IntoErrorContext + Clone,
fn with_error_context<C>(self, context: C) -> ErrorRailService<Self, C>where
C: IntoErrorContext + Clone,
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.