pub trait ReqInterceptor: Send {
type Error: IntoResponse + Send + Sync + 'static;
// Required method
fn intercept(
&self,
req: Request<Incoming>,
ip: SocketAddr,
) -> impl Future<Output = InterceptResult<Self::Error>> + Send;
}
Required Associated Types§
type Error: IntoResponse + Send + Sync + 'static
Required Methods§
fn intercept( &self, req: Request<Incoming>, ip: SocketAddr, ) -> impl Future<Output = InterceptResult<Self::Error>> + 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.