Trait glory_routing::filters::Filter
source · pub trait Filter: Debug + 'static {
// Required method
fn filter(&self, url: &Url, truck: &Truck, path: &mut PathState) -> bool;
// Provided methods
fn and<F>(self, other: F) -> And<Self, F>
where Self: Sized,
F: Filter { ... }
fn or<F>(self, other: F) -> Or<Self, F>
where Self: Sized,
F: Filter { ... }
fn and_then<F>(self, fun: F) -> AndThen<Self, F>
where Self: Sized,
F: Fn(&Url, &Truck, &mut PathState) -> bool + 'static { ... }
fn or_else<F>(self, fun: F) -> OrElse<Self, F>
where Self: Sized,
F: Fn(&Url, &Truck, &mut PathState) -> bool + 'static { ... }
}Expand description
Fiter trait for filter request.