Struct tower::filter::AsyncFilterLayer [−][src]
pub struct AsyncFilterLayer<U> { /* fields omitted */ }
This is supported on crate feature
filter
only.Expand description
Conditionally dispatch requests to the inner service based on an asynchronous predicate.
This Layer
produces instances of the AsyncFilter
service.
Implementations
Returns a new layer that produces AsyncFilter
services with the given
AsyncPredicate
.
Trait Implementations
Auto Trait Implementations
impl<U> RefUnwindSafe for AsyncFilterLayer<U> where
U: RefUnwindSafe,
impl<U> Send for AsyncFilterLayer<U> where
U: Send,
impl<U> Sync for AsyncFilterLayer<U> where
U: Sync,
impl<U> Unpin for AsyncFilterLayer<U> where
U: Unpin,
impl<U> UnwindSafe for AsyncFilterLayer<U> where
U: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more