Struct MapResponseLayer
pub struct MapResponseLayer<F> { /* private fields */ }
A Layer that produces a MapResponse service.
Implementations
impl<F> MapResponseLayer<F>
const fn new(f: F) -> SelfCreates a new
MapResponseLayerlayer.
Trait Implementations
impl<F: Clone> Clone for MapResponseLayer<F>
fn clone(&self) -> Self
impl<F: Debug> Debug for MapResponseLayer<F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<S, F> Layer<S> for MapResponseLayer<F>
where
F: Clone,
type Service = MapResponse<S, F>;fn layer(&self, inner: S) -> Self::Service