pub struct AsyncFilterExLayer<U> { /* 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> AsyncFilterExLayer<U>
impl<U> AsyncFilterExLayer<U>
pub fn new(predicate: U) -> AsyncFilterExLayer<U>
Trait Implementations§
Source§impl<U> Clone for AsyncFilterExLayer<U>where
U: Clone,
impl<U> Clone for AsyncFilterExLayer<U>where
U: Clone,
Source§fn clone(&self) -> AsyncFilterExLayer<U>
fn clone(&self) -> AsyncFilterExLayer<U>
Returns a copy 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> Debug for AsyncFilterExLayer<U>where
U: Debug,
impl<U> Debug for AsyncFilterExLayer<U>where
U: Debug,
Source§impl<U, S> Layer<S> for AsyncFilterExLayer<U>where
U: Clone,
impl<U, S> Layer<S> for AsyncFilterExLayer<U>where
U: Clone,
Source§type Service = AsyncFilterEx<S, U>
type Service = AsyncFilterEx<S, U>
The wrapped service
Auto Trait Implementations§
impl<U> Freeze for AsyncFilterExLayer<U>where
U: Freeze,
impl<U> RefUnwindSafe for AsyncFilterExLayer<U>where
U: RefUnwindSafe,
impl<U> Send for AsyncFilterExLayer<U>where
U: Send,
impl<U> Sync for AsyncFilterExLayer<U>where
U: Sync,
impl<U> Unpin for AsyncFilterExLayer<U>where
U: Unpin,
impl<U> UnwindSafe for AsyncFilterExLayer<U>where
U: 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