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 fn new(f: F) -> Self
pub fn new(f: F) -> Self
Creates a new MapResponseLayer
layer.
Trait Implementations§
source§impl<F: Clone> Clone for MapResponseLayer<F>
impl<F: Clone> Clone for MapResponseLayer<F>
source§fn clone(&self) -> MapResponseLayer<F>
fn clone(&self) -> MapResponseLayer<F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<F: Debug> Debug for MapResponseLayer<F>
impl<F: Debug> Debug for MapResponseLayer<F>
Auto 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)