Struct AsService
pub struct AsService<'a, M, Request> { /* private fields */ }
Service returned by MakeService::as_service.
See the documentation on as_service for details.
Trait Implementations
impl<M, Request> Debug for AsService<'_, M, Request>
where
M: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<M, S, Target, Request> Service<Target> for AsService<'_, M, Request>
where
M: Service<Target, Response = S>,
S: Service<Request>,
type Response = <M as Service<Target>>::Response;type Error = <M as Service<Target>>::Error;type Future = <M as Service<Target>>::Future;fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>fn call(&mut self, target: Target) -> Self::Future