Trait actix_web::guard::Guard [−][src]
pub trait Guard {
fn check(&self, ctx: &GuardContext<'_>) -> bool;
}
Expand description
Interface for routing guards.
See module level documentation for more.
Required methods
fn check(&self, ctx: &GuardContext<'_>) -> bool
fn check(&self, ctx: &GuardContext<'_>) -> bool
Returns true if predicate condition is met for a given request.