pub trait SendExcService<R>: Send + 'static
where R: Request,
{ type Future: Future<Output = Result<<R as Request>::Response, ExchangeError>> + Send + 'static; // Required methods fn poll_ready( &mut self, cx: &mut Context<'_> ) -> Poll<Result<(), ExchangeError>>; fn call(&mut self, req: R) -> Self::Future; // Provided methods fn as_service(&mut self) -> AsService<'_, Self, R> where Self: Sized { ... } fn into_service(self) -> IntoService<Self, R> where Self: Sized { ... } }
Expand description

An alias of ExcService with Send and 'static bounds.

Required Associated Types§

source

type Future: Future<Output = Result<<R as Request>::Response, ExchangeError>> + Send + 'static

The future response value.

Required Methods§

source

fn poll_ready( &mut self, cx: &mut Context<'_> ) -> Poll<Result<(), ExchangeError>>

See [Service::poll_ready] for more details.

source

fn call(&mut self, req: R) -> Self::Future

See [Service::call] for more details.

Provided Methods§

source

fn as_service(&mut self) -> AsService<'_, Self, R>
where Self: Sized,

Convert to a [Service].

source

fn into_service(self) -> IntoService<Self, R>
where Self: Sized,

Convert to a [Service].

Implementors§

source§

impl<S, R> SendExcService<R> for S
where S: ExcService<R> + Send + 'static, R: Request, <S as ExcService<R>>::Future: Send + 'static,

§

type Future = <S as ExcService<R>>::Future