pub struct AsyncFilterExLayer<U, R>where
U: AsyncPredicate<R>,{ /* private fields */ }Expand description
Conditionally dispatch requests to the inner service based on an asynchronous predicate
This Layer produces instances of the AsyncFilterEx service.
Implementations§
Source§impl<U, R> AsyncFilterExLayer<U, R>where
U: AsyncPredicate<R>,
impl<U, R> AsyncFilterExLayer<U, R>where
U: AsyncPredicate<R>,
pub fn new(predicate: U) -> AsyncFilterExLayer<U, R>
Trait Implementations§
Source§impl<U, R> Clone for AsyncFilterExLayer<U, R>where
U: Clone + AsyncPredicate<R>,
impl<U, R> Clone for AsyncFilterExLayer<U, R>where
U: Clone + AsyncPredicate<R>,
Source§fn clone(&self) -> AsyncFilterExLayer<U, R>
fn clone(&self) -> AsyncFilterExLayer<U, R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<U, R> Debug for AsyncFilterExLayer<U, R>
impl<U, R> Debug for AsyncFilterExLayer<U, R>
Source§impl<U, S, R> Layer<S> for AsyncFilterExLayer<U, R>where
U: Clone + AsyncPredicate<R>,
impl<U, S, R> Layer<S> for AsyncFilterExLayer<U, R>where
U: Clone + AsyncPredicate<R>,
Source§type Service = AsyncFilterEx<S, U, R>
type Service = AsyncFilterEx<S, U, R>
The wrapped service
Auto Trait Implementations§
impl<U, R> Freeze for AsyncFilterExLayer<U, R>where
U: Freeze,
impl<U, R> RefUnwindSafe for AsyncFilterExLayer<U, R>where
U: RefUnwindSafe,
R: RefUnwindSafe,
impl<U, R> Send for AsyncFilterExLayer<U, R>
impl<U, R> Sync for AsyncFilterExLayer<U, R>
impl<U, R> Unpin for AsyncFilterExLayer<U, R>
impl<U, R> UnwindSafe for AsyncFilterExLayer<U, R>where
U: UnwindSafe,
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more