pub trait Interceptor:
Send
+ Sync
+ 'static {
// Required method
fn intercept(
&self,
exchange: Exchange,
next: Next,
) -> BoxFuture<Result<WireResponse, WireError>>;
}Required Methods§
fn intercept( &self, exchange: Exchange, next: Next, ) -> BoxFuture<Result<WireResponse, WireError>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".