Struct actix_service::dev::Map[][src]

pub struct Map<A, F, Req, Res> { /* fields omitted */ }

Service for the map combinator, changing the type of a service's response.

This is created by the ServiceExt::map method.

Trait Implementations

impl<A, F, Req, Res> Clone for Map<A, F, Req, Res> where
    A: Clone,
    F: Clone
[src]

impl<A, F, Req, Res> Service<Req> for Map<A, F, Req, Res> where
    A: Service<Req>,
    F: FnMut(A::Response) -> Res + Clone
[src]

type Response = Res

Responses given by the service.

type Error = A::Error

Errors produced by the service when polling readiness or executing call.

type Future = MapFuture<A, F, Req, Res>

The future response value.

Auto Trait Implementations

impl<A, F, Req, Res> Send for Map<A, F, Req, Res> where
    A: Send,
    F: Send,
    Req: Send,
    Res: Send
[src]

impl<A, F, Req, Res> Sync for Map<A, F, Req, Res> where
    A: Sync,
    F: Sync,
    Req: Sync,
    Res: Sync
[src]

impl<A, F, Req, Res> Unpin for Map<A, F, Req, Res> where
    A: Unpin,
    F: Unpin,
    Req: Unpin,
    Res: Unpin
[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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<S, Req> IntoService<S, Req> for S where
    S: Service<Req>, 
[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.