Struct MapFuture

struct MapFuture<S, F> { ... }

Service returned by the map_future combinator.

Implementations

impl<S, F> MapFuture<S, F>

const fn new(inner: S, f: F) -> Self

Creates a new MapFuture service.

fn layer(f: F) -> MapFutureLayer<F>

Returns a new Layer that produces MapFuture services.

This is a convenience function that simply calls MapFutureLayer::new.

fn get_ref(self: &Self) -> &S

Get a reference to the inner service

fn get_mut(self: &mut Self) -> &mut S

Get a mutable reference to the inner service

fn into_inner(self: Self) -> S

Consume self, returning the inner service

impl<M, S, Target, Request> MakeService for MapFuture<S, F>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <M as MakeService<Target, Request>>::MakeError>>
fn make_service(self: &mut Self, target: Target) -> <M as MakeService<Target, Request>>::Future

impl<R, S, F, T, E, Fut> Service for MapFuture<S, F>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, req: R) -> <Self as >::Future

impl<S, F> Debug for MapFuture<S, F>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<S, F> Freeze for MapFuture<S, F>

impl<S, F> RefUnwindSafe for MapFuture<S, F>

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> UnsafeUnpin for MapFuture<S, F>

impl<S, F> UnwindSafe for MapFuture<S, F>

impl<S: $crate::clone::Clone, F: $crate::clone::Clone> Clone for MapFuture<S, F>

fn clone(self: &Self) -> MapFuture<S, F>

impl<T> Any for MapFuture<S, F>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for MapFuture<S, F>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for MapFuture<S, F>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for MapFuture<S, F>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for MapFuture<S, F>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for MapFuture<S, F>

impl<T> ToOwned for MapFuture<S, F>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> WithSubscriber for MapFuture<S, F>

impl<T, Request> ServiceExt for MapFuture<S, F>

impl<T, U> Into for MapFuture<S, F>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for MapFuture<S, F>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for MapFuture<S, F>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>