[][src]Struct actix_service::dev::MapServiceFactory

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

MapNewService new service combinator

Trait Implementations

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

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

type Response = Res

Responses given by the created services.

type Error = A::Error

Errors produced by the created services.

type Config = A::Config

Service factory configuration.

type Service = Map<A::Service, F, Req, Res>

The kind of Service created by this factory.

type InitError = A::InitError

Errors potentially raised while building a service.

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

The future of the Service instance.

Auto Trait Implementations

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

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

impl<A, F, Req, Res> Unpin for MapServiceFactory<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<SF, Req> IntoServiceFactory<SF, Req> for SF where
    SF: ServiceFactory<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.