Skip to main content

Interceptor

Trait Interceptor 

Source
pub trait Interceptor:
    Send
    + Sync
    + 'static {
    // Required method
    fn intercept(
        &self,
        exchange: Exchange,
        next: Next,
    ) -> BoxFuture<Result<WireResponse, WireError>>;
}

Required Methods§

Source

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".

Implementors§