Trait exc_core::SendExcService
source · pub trait SendExcService<R>: Send + 'staticwhere
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§
Required Methods§
sourcefn poll_ready(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(), ExchangeError>>
fn poll_ready( &mut self, cx: &mut Context<'_> ) -> Poll<Result<(), ExchangeError>>
See [Service::poll_ready
] for more details.
Provided Methods§
sourcefn as_service(&mut self) -> AsService<'_, Self, R>where
Self: Sized,
fn as_service(&mut self) -> AsService<'_, Self, R>where
Self: Sized,
Convert to a [Service
].
sourcefn into_service(self) -> IntoService<Self, R>where
Self: Sized,
fn into_service(self) -> IntoService<Self, R>where
Self: Sized,
Convert to a [Service
].