pub struct Exact<P>(_);Expand description
A Filter matching an exact path segment.
Constructed from path() or path!().
Trait Implementations§
Auto Trait Implementations§
impl<P> RefUnwindSafe for Exact<P>where P: RefUnwindSafe,
impl<P> Send for Exact<P>where P: Send,
impl<P> Sync for Exact<P>where P: Sync,
impl<P> Unpin for Exact<P>where P: Unpin,
impl<P> UnwindSafe for Exact<P>where P: 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
source§impl<T> Filter for Twhere
T: FilterBase,
impl<T> Filter for Twhere T: FilterBase,
source§fn and<F>(self, other: F) -> And<Self, F>where
Self: Sized,
<Self::Extract as Tuple>::HList: Combine<<F::Extract as Tuple>::HList>,
F: Filter + Clone,
F::Error: CombineRejection<Self::Error>,
fn and<F>(self, other: F) -> And<Self, F>where Self: Sized, <Self::Extract as Tuple>::HList: Combine<<F::Extract as Tuple>::HList>, F: Filter + Clone, F::Error: CombineRejection<Self::Error>,
Composes a new
Filter that requires both this and the other to filter a request. Read moresource§fn or<F>(self, other: F) -> Or<Self, F>where
Self: Filter<Error = Rejection> + Sized,
F: Filter,
F::Error: CombineRejection<Self::Error>,
fn or<F>(self, other: F) -> Or<Self, F>where Self: Filter<Error = Rejection> + Sized, F: Filter, F::Error: CombineRejection<Self::Error>,
Composes a new
Filter of either this or the other filter. Read moresource§fn map<F>(self, fun: F) -> Map<Self, F>where
Self: Sized,
F: Func<Self::Extract> + Clone,
fn map<F>(self, fun: F) -> Map<Self, F>where Self: Sized, F: Func<Self::Extract> + Clone,
Composes this
Filter with a function receiving the extracted value. Read moresource§fn then<F>(self, fun: F) -> Then<Self, F>where
Self: Sized,
F: Func<Self::Extract> + Clone,
F::Output: Future + Send,
fn then<F>(self, fun: F) -> Then<Self, F>where Self: Sized, F: Func<Self::Extract> + Clone, F::Output: Future + Send,
Composes this
Filter with an async function receiving
the extracted value. Read moresource§fn and_then<F>(self, fun: F) -> AndThen<Self, F>where
Self: Sized,
F: Func<Self::Extract> + Clone,
F::Output: TryFuture + Send,
<F::Output as TryFuture>::Error: CombineRejection<Self::Error>,
fn and_then<F>(self, fun: F) -> AndThen<Self, F>where Self: Sized, F: Func<Self::Extract> + Clone, F::Output: TryFuture + Send, <F::Output as TryFuture>::Error: CombineRejection<Self::Error>,
Composes this
Filter with a fallible async function receiving
the extracted value. Read moresource§fn or_else<F>(self, fun: F) -> OrElse<Self, F>where
Self: Filter<Error = Rejection> + Sized,
F: Func<Rejection>,
F::Output: TryFuture<Ok = Self::Extract> + Send,
<F::Output as TryFuture>::Error: IsReject,
fn or_else<F>(self, fun: F) -> OrElse<Self, F>where Self: Filter<Error = Rejection> + Sized, F: Func<Rejection>, F::Output: TryFuture<Ok = Self::Extract> + Send, <F::Output as TryFuture>::Error: IsReject,
Compose this
Filter with a function receiving an error. Read moresource§fn recover<F>(self, fun: F) -> Recover<Self, F>where
Self: Filter<Error = Rejection> + Sized,
F: Func<Rejection>,
F::Output: TryFuture + Send,
<F::Output as TryFuture>::Error: IsReject,
fn recover<F>(self, fun: F) -> Recover<Self, F>where Self: Filter<Error = Rejection> + Sized, F: Func<Rejection>, F::Output: TryFuture + Send, <F::Output as TryFuture>::Error: IsReject,
Compose this
Filter with a function receiving an error and
returning a new type, instead of the same type. Read moresource§fn unify<T>(self) -> Unify<Self>where
Self: Filter<Extract = (Either<T, T>,)> + Sized,
T: Tuple,
fn unify<T>(self) -> Unify<Self>where Self: Filter<Extract = (Either<T, T>,)> + Sized, T: Tuple,
source§fn untuple_one<T>(self) -> UntupleOne<Self>where
Self: Filter<Extract = (T,)> + Sized,
T: Tuple,
fn untuple_one<T>(self) -> UntupleOne<Self>where Self: Filter<Extract = (T,)> + Sized, T: Tuple,
Convenience method to remove one layer of tupling. Read more