[][src]Struct actix_service::dev::ApplyFactory

pub struct ApplyFactory<SF, F, Req, In, Res, Err> { /* fields omitted */ }

ApplyFactory service factory combinator.

Trait Implementations

impl<SF, F, Fut, Req, In, Res, Err> Clone for ApplyFactory<SF, F, Req, In, Res, Err> where
    SF: ServiceFactory<In, Error = Err> + Clone,
    F: FnMut(Req, &mut SF::Service) -> Fut + Clone,
    Fut: Future<Output = Result<Res, Err>>, 
[src]

impl<SF, F, Fut, Req, In, Res, Err> ServiceFactory<Req> for ApplyFactory<SF, F, Req, In, Res, Err> where
    SF: ServiceFactory<In, Error = Err>,
    F: FnMut(Req, &mut SF::Service) -> Fut + Clone,
    Fut: Future<Output = Result<Res, Err>>, 
[src]

type Response = Res

Responses given by the created services.

type Error = Err

Errors produced by the created services.

type Config = SF::Config

Service factory configuration.

type Service = Apply<SF::Service, F, Req, In, Res, Err>

The kind of Service created by this factory.

type InitError = SF::InitError

Errors potentially raised while building a service.

type Future = ApplyServiceFactoryResponse<SF, F, Fut, Req, In, Res, Err>

The future of the Service instance.

Auto Trait Implementations

impl<SF, F, Req, In, Res, Err> Send for ApplyFactory<SF, F, Req, In, Res, Err> where
    Err: Send,
    F: Send,
    In: Send,
    Req: Send,
    Res: Send,
    SF: Send
[src]

impl<SF, F, Req, In, Res, Err> Sync for ApplyFactory<SF, F, Req, In, Res, Err> where
    Err: Sync,
    F: Sync,
    In: Sync,
    Req: Sync,
    Res: Sync,
    SF: Sync
[src]

impl<SF, F, Req, In, Res, Err> Unpin for ApplyFactory<SF, F, Req, In, Res, Err> where
    Err: Unpin,
    F: Unpin,
    In: Unpin,
    Req: Unpin,
    Res: Unpin,
    SF: 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.