pub trait FilterFn:
Send
+ Sync
+ 'static {
// Required method
fn filter(&self, request: &Request<Body>) -> bool;
}Expand description
Used by the Filter HttpResponder to decide which requests to forward and which to ignore.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".