[−][src]Trait actix_web::guard::Guard
Trait defines resource guards. Guards are used for route selection.
Guards can not modify the request object. But it is possible
to store extra attributes on a request by using the Extensions
container.
Extensions containers are available via the RequestHead::extensions()
method.
Required methods
fn check(&self, request: &RequestHead) -> bool
Check if request matches predicate
Implementors
impl Guard for AllGuard
[src]
fn check(&self, request: &RequestHead) -> bool
[src]
impl Guard for AnyGuard
[src]
fn check(&self, req: &RequestHead) -> bool
[src]
impl<F> Guard for F where
F: Fn(&RequestHead) -> bool,
[src]
F: Fn(&RequestHead) -> bool,