[][src]Trait actix_web::pred::Predicate

pub trait Predicate<S> {
    fn check(&self, _: &Request, _: &S) -> bool;
}

Trait defines resource route predicate. Predicate can modify request object. It is also possible to to store extra attributes on request by using Extensions container, Extensions container available via HttpRequest::extensions() method.

Required Methods

Check if request matches predicate

Implementors

impl<S: 'static> Predicate<S> for AllPredicate<S>
[src]

impl<S: 'static> Predicate<S> for AnyPredicate<S>
[src]