Trait ReqInterceptor

Source
pub trait ReqInterceptor {
    // Required method
    fn intercept(
        &self,
        req: Request<Incoming>,
        ip: SocketAddr,
    ) -> impl Future<Output = InterceptResult> + Send;
}

Required Methods§

Source

fn intercept( &self, req: Request<Incoming>, ip: SocketAddr, ) -> impl Future<Output = InterceptResult> + Send

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.

Implementors§