Trait tower::filter::AsyncPredicate
source · pub trait AsyncPredicate<Request> {
type Future: Future<Output = Result<Self::Request, BoxError>>;
type Request;
// Required method
fn check(&mut self, request: Request) -> Self::Future;
}
Expand description
Checks a request asynchronously.