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.