pub trait Interceptor:
Send
+ Sync
+ 'static {
// Required method
fn intercept<'a>(
&'a self,
ctx: &'a RequestContext,
next: Next<'a>,
) -> Pin<Box<dyn Future<Output = Result<HttpResponse, HttpException>> + Send + 'a>>;
}Expand description
Re-exported public API.
Public Caelix extension trait Interceptor.
Required Methods§
Sourcefn intercept<'a>(
&'a self,
ctx: &'a RequestContext,
next: Next<'a>,
) -> Pin<Box<dyn Future<Output = Result<HttpResponse, HttpException>> + Send + 'a>>
fn intercept<'a>( &'a self, ctx: &'a RequestContext, next: Next<'a>, ) -> Pin<Box<dyn Future<Output = Result<HttpResponse, HttpException>> + Send + 'a>>
Public Caelix API.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".