pub struct Chain<L, R> { /* private fields */ }
Expand description
A pair of structs representing arbitrary chain structure.
Implementations
Trait Implementations
sourceimpl<S1, S2, M, T> Config<M, T> for Chain<S1, S2>where
S1: Config<M, T>,
S2: Config<M, T>,
T: Concurrency,
impl<S1, S2, M, T> Config<M, T> for Chain<S1, S2>where
S1: Config<M, T>,
S2: Config<M, T>,
T: Concurrency,
sourceimpl<L, R, T> Endpoint<T> for Chain<L, R>where
L: Endpoint<T>,
R: Endpoint<T>,
impl<L, R, T> Endpoint<T> for Chain<L, R>where
L: Endpoint<T>,
R: Endpoint<T>,
type Output = Either<<L as Endpoint<T>>::Output, <R as Endpoint<T>>::Output>
type Error = Error
type Future = ChainFuture<<L as Endpoint<T>>::Future, <R as Endpoint<T>>::Future>
sourcefn apply(&self, args: T, cx: &mut ApplyContext<'_, '_>) -> ApplyResult<T, Self>
fn apply(&self, args: T, cx: &mut ApplyContext<'_, '_>) -> ApplyResult<T, Self>
Determines the
Action
that this endpoint performs based on the request method. Read moresourcefn allowed_methods(&self) -> Option<AllowedMethods>
fn allowed_methods(&self) -> Option<AllowedMethods>
Returns a list of HTTP methods that this endpoint accepts. Read more
sourceimpl<L, R> Extractor for Chain<L, R>where
L: Extractor,
R: Extractor,
L::Output: Combine<R::Output>,
impl<L, R> Extractor for Chain<L, R>where
L: Extractor,
R: Extractor,
L::Output: Combine<R::Output>,
sourceimpl<I, O, H> ModifyHandler<H> for Chain<I, O>where
H: Handler,
I: ModifyHandler<H>,
O: ModifyHandler<I::Handler>,
impl<I, O, H> ModifyHandler<H> for Chain<I, O>where
H: Handler,
I: ModifyHandler<H>,
O: ModifyHandler<I::Handler>,
type Output = <O as ModifyHandler<<I as ModifyHandler<H>>::Handler>>::Output
type Handler = <O as ModifyHandler<<I as ModifyHandler<H>>::Handler>>::Handler
fn modify(&self, input: H) -> Self::Handler
Auto Trait Implementations
impl<L, R> RefUnwindSafe for Chain<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for Chain<L, R>where
L: Send,
R: Send,
impl<L, R> Sync for Chain<L, R>where
L: Sync,
R: Sync,
impl<L, R> Unpin for Chain<L, R>where
L: Unpin,
R: Unpin,
impl<L, R> UnwindSafe for Chain<L, R>where
L: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more