pub trait Filter:
Send
+ Sync
+ Debug {
// Required method
fn matches(&self, req: &RequestContext<'_, '_>) -> bool;
}Expand description
Required Methods§
Sourcefn matches(&self, req: &RequestContext<'_, '_>) -> bool
fn matches(&self, req: &RequestContext<'_, '_>) -> bool
Check if the request matches this filter’s criteria.
Returns true if the request should be allowed, false otherwise.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".