Struct spacegate_kernel::helper_layers::map_future::MapFuture
source · 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