Struct MapRequest
pub struct MapRequest<S, F> { /* private fields */ }
Service returned by the MapRequest combinator.
Implementations
impl<S, F> MapRequest<S, F>
const fn new(inner: S, f: F) -> SelfCreates a new
MapRequestservice.fn layer(f: F) -> MapRequestLayer<F>Returns a new
Layerthat producesMapRequestservices.This is a convenience function that simply calls
MapRequestLayer::new.
Trait Implementations
impl<S, F> Debug for MapRequest<S, F>
where
S: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<S, F, R1, R2> Service<R1> for MapRequest<S, F>
where
S: Service<R2>,
F: FnMut(R1) -> R2,
type Response = <S as Service<R2>>::Response;type Error = <S as Service<R2>>::Error;type Future = <S as Service<R2>>::Future;fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), S::Error>>fn call(&mut self, request: R1) -> S::Future
impl<S: Clone, F: Clone> Clone for MapRequest<S, F>
fn clone(&self) -> Self