pub enum Either<A, B> {
A(A),
B(B),
}Variants§
Trait Implementations§
Source§impl<B, S1, S2> HttpService<B> for Either<S1, S2>where
B: Send,
S1: HttpService<B>,
S2: HttpService<B, ResponseBody = <S1 as HttpService<B>>::ResponseBody>,
impl<B, S1, S2> HttpService<B> for Either<S1, S2>where
B: Send,
S1: HttpService<B>,
S2: HttpService<B, ResponseBody = <S1 as HttpService<B>>::ResponseBody>,
type ResponseBody = <S1 as HttpService<B>>::ResponseBody
async fn call( &self, request: Request<B>, ) -> Response<<Either<S1, S2> as HttpService<B>>::ResponseBody>
Auto Trait Implementations§
impl<A, B> Freeze for Either<A, B>
impl<A, B> RefUnwindSafe for Either<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Either<A, B>
impl<A, B> Sync for Either<A, B>
impl<A, B> Unpin for Either<A, B>
impl<A, B> UnwindSafe for Either<A, B>where
A: UnwindSafe,
B: 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