pub struct Matches<V> { /* private fields */ }Trait Implementations§
Source§impl<'e, V> Endpoint<'e> for Matches<V>where
V: PartialEq<HeaderValue> + 'e,
impl<'e, V> Endpoint<'e> for Matches<V>where
V: PartialEq<HeaderValue> + 'e,
Source§type Future = FutureResult<<Matches<V> as Endpoint<'e>>::Output, Error>
type Future = FutureResult<<Matches<V> as Endpoint<'e>>::Output, Error>
The type of value which will be returned from
apply.Source§fn apply(&'e self, ecx: &mut ApplyContext<'_>) -> ApplyResult<Self::Future>
fn apply(&'e self, ecx: &mut ApplyContext<'_>) -> ApplyResult<Self::Future>
Perform checking the incoming HTTP request and returns
an instance of the associated Future if matched.
Source§fn with_output<T: Tuple>(self) -> Self
fn with_output<T: Tuple>(self) -> Self
Add an annotation that the associated type
Output is fixed to T.Auto Trait Implementations§
impl<V> !Freeze for Matches<V>
impl<V> RefUnwindSafe for Matches<V>where
V: RefUnwindSafe,
impl<V> Send for Matches<V>where
V: Send,
impl<V> Sync for Matches<V>where
V: Sync,
impl<V> Unpin for Matches<V>where
V: Unpin,
impl<V> UnsafeUnpin for Matches<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for Matches<V>where
V: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, E> EndpointWrapExt<'a> for Ewhere
E: Endpoint<'a>,
impl<'a, E> EndpointWrapExt<'a> for Ewhere
E: Endpoint<'a>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more