Trait actix_web::guard::Guard[][src]

pub trait Guard {
    fn check(&self, request: &RequestHead) -> bool;
}
Expand description

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

Check if request matches predicate

Implementations on Foreign Types

Implementors