Trait AsyncPredicate
trait AsyncPredicate<Request>
Checks a request asynchronously.
Associated Types
type Future: TraitBound { trait_: Path { path: "Future", id: Id(175), args: Some(AngleBracketed { args: [], constraints: [AssocItemConstraint { name: "Output", args: None, binding: Equality(Type(ResolvedPath(Path { path: "Result", id: Id(33), args: Some(AngleBracketed { args: [Type(QualifiedPath { name: "Request", args: None, self_type: Generic("Self"), trait_: Some(Path { path: "", id: Id(496), args: None }) }), Type(ResolvedPath(Path { path: "BoxError", id: Id(156), args: None }))], constraints: [] }) }))) }] }) }, generic_params: [], modifier: None }The future returned by
check.type RequestThe type of requests returned by
check.This request is forwarded to the inner service if the predicate succeeds.
Required Methods
fn check(self: &mut Self, request: Request) -> <Self as >::FutureCheck whether the given request should be forwarded.
If the future resolves with
Ok, the request is forwarded to the inner service.
Implementors
impl<F, T, U, R, E> AsyncPredicate for F