pub struct MapResponseLayer<F> { /* private fields */ }
Expand description
A Layer
that produces a MapResponse
service.
Implementations§
Source§impl<F> MapResponseLayer<F>
impl<F> MapResponseLayer<F>
Sourcepub const fn new(f: F) -> Self
pub const fn new(f: F) -> Self
Creates a new MapResponseLayer
layer.
Trait Implementations§
Source§impl<F> Clone for MapResponseLayer<F>where
F: Clone,
impl<F> Clone for MapResponseLayer<F>where
F: Clone,
Source§impl<F> Debug for MapResponseLayer<F>where
F: Debug,
impl<F> Debug for MapResponseLayer<F>where
F: Debug,
Source§impl<S, F> Layer<S> for MapResponseLayer<F>where
F: Clone,
impl<S, F> Layer<S> for MapResponseLayer<F>where
F: Clone,
Source§type Service = MapResponse<S, F>
type Service = MapResponse<S, F>
The service produced by the layer.
Source§fn layer(&self, inner: S) -> Self::Service
fn layer(&self, inner: S) -> Self::Service
Wrap the given service with the middleware, returning a new service.
Source§fn into_layer(self, inner: S) -> Self::Service
fn into_layer(self, inner: S) -> Self::Service
Same as
layer
but consuming self after the service was created. Read moreAuto Trait Implementations§
impl<F> Freeze for MapResponseLayer<F>where
F: Freeze,
impl<F> RefUnwindSafe for MapResponseLayer<F>where
F: RefUnwindSafe,
impl<F> Send for MapResponseLayer<F>where
F: Send,
impl<F> Sync for MapResponseLayer<F>where
F: Sync,
impl<F> Unpin for MapResponseLayer<F>where
F: Unpin,
impl<F> UnwindSafe for MapResponseLayer<F>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more