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

pub struct Map<A, F, Response> { /* 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, Response> Clone for Map<A, F, Response> where
    A: Clone,
    F: Clone
[src]

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

type Request = A::Request

Requests handled by the service.

type Response = Response

Responses given by the service.

type Error = A::Error

Errors produced by the service.

type Future = MapFuture<A, F, Response>

The future response value.

Auto Trait Implementations

impl<A, F, Response> RefUnwindSafe for Map<A, F, Response> where
    A: RefUnwindSafe,
    F: RefUnwindSafe,
    Response: RefUnwindSafe

impl<A, F, Response> Send for Map<A, F, Response> where
    A: Send,
    F: Send,
    Response: Send

impl<A, F, Response> Sync for Map<A, F, Response> where
    A: Sync,
    F: Sync,
    Response: Sync

impl<A, F, Response> Unpin for Map<A, F, Response> where
    A: Unpin,
    F: Unpin,
    Response: Unpin

impl<A, F, Response> UnwindSafe for Map<A, F, Response> where
    A: UnwindSafe,
    F: UnwindSafe,
    Response: UnwindSafe

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<T> IntoService<T> for T where
    T: Service
[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.