pub struct And<E1, E2> { /* private fields */ }Trait Implementations§
impl<E1: Copy, E2: Copy> Copy for And<E1, E2>
Source§impl<'a, E1, E2> Endpoint<'a> for And<E1, E2>
impl<'a, E1, E2> Endpoint<'a> for And<E1, E2>
Source§type Output = <<E1 as Endpoint<'a>>::Output as Combine<<E2 as Endpoint<'a>>::Output>>::Out
type Output = <<E1 as Endpoint<'a>>::Output as Combine<<E2 as Endpoint<'a>>::Output>>::Out
The inner type associated with this endpoint.
Source§type Future = AndFuture<<E1 as Endpoint<'a>>::Future, <E2 as Endpoint<'a>>::Future>
type Future = AndFuture<<E1 as Endpoint<'a>>::Future, <E2 as Endpoint<'a>>::Future>
The type of value which will be returned from
apply.Source§fn apply(&'a self, ecx: &mut ApplyContext<'_>) -> ApplyResult<Self::Future>
fn apply(&'a 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<E1, E2> Freeze for And<E1, E2>
impl<E1, E2> RefUnwindSafe for And<E1, E2>where
E1: RefUnwindSafe,
E2: RefUnwindSafe,
impl<E1, E2> Send for And<E1, E2>
impl<E1, E2> Sync for And<E1, E2>
impl<E1, E2> Unpin for And<E1, E2>
impl<E1, E2> UnsafeUnpin for And<E1, E2>where
E1: UnsafeUnpin,
E2: UnsafeUnpin,
impl<E1, E2> UnwindSafe for And<E1, E2>where
E1: UnwindSafe,
E2: 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