Struct FilterLayer
pub struct FilterLayer<U> { /* private fields */ }
Conditionally dispatch requests to the inner service based on a synchronous predicate.
Implementations
impl<U> FilterLayer<U>
Trait Implementations
impl<U: Clone> Clone for FilterLayer<U>
fn clone(&self) -> FilterLayer<U>
impl<U: Clone, S> Layer<S> for FilterLayer<U>
type Service = Filter<S, U>;fn layer(&self, service: S) -> Self::Service
impl<U: Debug> Debug for FilterLayer<U>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<U> Freeze for FilterLayer<U>
where
U: Freeze,
impl<U> RefUnwindSafe for FilterLayer<U>
where
U: RefUnwindSafe,
impl<U> Send for FilterLayer<U>
where
U: Send,
impl<U> Sync for FilterLayer<U>
where
U: Sync,
impl<U> Unpin for FilterLayer<U>
where
U: Unpin,
impl<U> UnsafeUnpin for FilterLayer<U>
where
U: UnsafeUnpin,
impl<U> UnwindSafe for FilterLayer<U>
where
U: UnwindSafe,
Blanket Implementations
impl<T> Any for FilterLayer<U>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FilterLayer<U>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FilterLayer<U>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for FilterLayer<U>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for FilterLayer<U>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for FilterLayer<U>
impl<T> ToOwned for FilterLayer<U>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> WithSubscriber for FilterLayer<U>
impl<T, U> Into<U> for FilterLayer<U>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for FilterLayer<U>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for FilterLayer<U>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>