Struct actix_web::pred::AllPredicate
[−]
[src]
pub struct AllPredicate<S>(_);
Matches if all of supplied predicate matches.
Methods
impl<S> AllPredicate<S>
[src]
pub fn and<P: Predicate<S> + 'static>(self, pred: P) -> Self
[src]
Add new predicate to list of predicates to check
Trait Implementations
impl<S: 'static> Predicate<S> for AllPredicate<S>
[src]
fn check(&self, req: &mut HttpRequest<S>) -> bool
[src]
Check if request matches predicate