pub struct ContentFilterMiddleware { /* private fields */ }Expand description
Content filter middleware — blocks content matching patterns.
Implementations§
Trait Implementations§
Source§impl Middleware for ContentFilterMiddleware
impl Middleware for ContentFilterMiddleware
Source§fn phases(&self) -> Vec<MiddlewarePhase>
fn phases(&self) -> Vec<MiddlewarePhase>
Phases at which this middleware wishes to be invoked.
Source§fn handle<'a>(
&'a self,
ctx: &'a MiddlewareContext,
) -> Pin<Box<dyn Future<Output = MiddlewareResult> + Send + 'a>>
fn handle<'a>( &'a self, ctx: &'a MiddlewareContext, ) -> Pin<Box<dyn Future<Output = MiddlewareResult> + Send + 'a>>
Inspect the context for the current phase and return a result.
Auto Trait Implementations§
impl Freeze for ContentFilterMiddleware
impl RefUnwindSafe for ContentFilterMiddleware
impl Send for ContentFilterMiddleware
impl Sync for ContentFilterMiddleware
impl Unpin for ContentFilterMiddleware
impl UnsafeUnpin for ContentFilterMiddleware
impl UnwindSafe for ContentFilterMiddleware
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more