Struct AsyncFilterLayer
pub struct AsyncFilterLayer<U> { /* private fields */ }
Conditionally dispatch requests to the inner service based on an asynchronous predicate.
This Layer produces instances of the AsyncFilter service.
Implementations
impl<U> AsyncFilterLayer<U>
const fn new(predicate: U) -> SelfReturns a new layer that produces
AsyncFilterservices with the givenAsyncPredicate.
Trait Implementations
impl<U: Clone> Clone for AsyncFilterLayer<U>
fn clone(&self) -> Self
impl<U: Clone, S> Layer<S> for AsyncFilterLayer<U>
type Service = AsyncFilter<S, U>;fn layer(&self, service: S) -> Self::Service
impl<U: Debug> Debug for AsyncFilterLayer<U>
fn fmt(&self, f: &mut Formatter<'_>) -> Result