Struct tower::util::MapRequestLayer
source · pub struct MapRequestLayer<F> { /* private fields */ }
Available on crate feature
util
only.Expand description
A Layer
that produces MapRequest
services.
Implementations§
source§impl<F> MapRequestLayer<F>
impl<F> MapRequestLayer<F>
sourcepub const fn new(f: F) -> Self
pub const fn new(f: F) -> Self
Creates a new MapRequestLayer
.
Trait Implementations§
source§impl<F: Clone> Clone for MapRequestLayer<F>
impl<F: Clone> Clone for MapRequestLayer<F>
source§fn clone(&self) -> MapRequestLayer<F>
fn clone(&self) -> MapRequestLayer<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 MapRequestLayer<F>
impl<F: Debug> Debug for MapRequestLayer<F>
Auto Trait Implementations§
impl<F> Freeze for MapRequestLayer<F>where
F: Freeze,
impl<F> RefUnwindSafe for MapRequestLayer<F>where
F: RefUnwindSafe,
impl<F> Send for MapRequestLayer<F>where
F: Send,
impl<F> Sync for MapRequestLayer<F>where
F: Sync,
impl<F> Unpin for MapRequestLayer<F>where
F: Unpin,
impl<F> UnwindSafe for MapRequestLayer<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
)