pub struct MapFuture<S, F> { /* private fields */ }
Expand description
Service
returned by the [map_future
] combinator.
Implementations§
Source§impl<S, F> MapFuture<S, F>
impl<S, F> MapFuture<S, F>
Sourcepub fn layer(f: F) -> MapFutureLayer<F>
pub fn layer(f: F) -> MapFutureLayer<F>
Returns a new Layer
that produces MapFuture
services.
This is a convenience function that simply calls MapFutureLayer::new
.
Sourcepub fn into_inner(self) -> S
pub fn into_inner(self) -> S
Consume self
, returning the inner service
Trait Implementations§
Auto Trait Implementations§
impl<S, F> Freeze for MapFuture<S, F>
impl<S, F> RefUnwindSafe for MapFuture<S, F>where
S: RefUnwindSafe,
F: RefUnwindSafe,
impl<S, F> Send for MapFuture<S, F>
impl<S, F> Sync for MapFuture<S, F>
impl<S, F> Unpin for MapFuture<S, F>
impl<S, F> UnwindSafe for MapFuture<S, F>where
S: UnwindSafe,
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