[][src]Struct tower::util::MapRequest

pub struct MapRequest<S, F> { /* fields omitted */ }
This is supported on crate feature util only.

Service returned by the MapRequest combinator.

Implementations

impl<S, F> MapRequest<S, F>[src]

pub fn new(inner: S, f: F) -> Self[src]

Creates a new MapRequest service.

Trait Implementations

impl<S: Clone, F: Clone> Clone for MapRequest<S, F>[src]

impl<S: Debug, F: Debug> Debug for MapRequest<S, F>[src]

impl<S, F, R1, R2> Service<R1> for MapRequest<S, F> where
    S: Service<R2>,
    F: FnMut(R1) -> R2, 
[src]

type Response = S::Response

Responses given by the service.

type Error = S::Error

Errors produced by the service.

type Future = S::Future

The future response value.

Auto Trait Implementations

impl<S, F> RefUnwindSafe for MapRequest<S, F> where
    F: RefUnwindSafe,
    S: RefUnwindSafe
[src]

impl<S, F> Send for MapRequest<S, F> where
    F: Send,
    S: Send
[src]

impl<S, F> Sync for MapRequest<S, F> where
    F: Sync,
    S: Sync
[src]

impl<S, F> Unpin for MapRequest<S, F> where
    F: Unpin,
    S: Unpin
[src]

impl<S, F> UnwindSafe for MapRequest<S, F> where
    F: UnwindSafe,
    S: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Request> ServiceExt<Request> for T where
    T: Service<Request> + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,