[][src]Struct actix_service::dev::FnServiceConfig

pub struct FnServiceConfig<F, Fut, Cfg, Srv, Err> where
    F: Fn(Cfg) -> Fut,
    Fut: Future<Output = Result<Srv, Err>>,
    Srv: Service
{ /* fields omitted */ }

Convert Fn(&Config) -> Future<Service> fn to NewService

Trait Implementations

impl<F, Fut, Cfg, Srv, Err> Clone for FnServiceConfig<F, Fut, Cfg, Srv, Err> where
    F: Fn(Cfg) -> Fut + Clone,
    Fut: Future<Output = Result<Srv, Err>>,
    Srv: Service
[src]

impl<F, Fut, Cfg, Srv, Err> ServiceFactory for FnServiceConfig<F, Fut, Cfg, Srv, Err> where
    F: Fn(Cfg) -> Fut,
    Fut: Future<Output = Result<Srv, Err>>,
    Srv: Service
[src]

type Request = Srv::Request

Requests handled by the service.

type Response = Srv::Response

Responses given by the service

type Error = Srv::Error

Errors produced by the service

type Config = Cfg

Service factory configuration

type Service = Srv

The Service value created by this factory

type InitError = Err

Errors produced while building a service.

type Future = Fut

The future of the Service instance.

Auto Trait Implementations

impl<F, Fut, Cfg, Srv, Err> RefUnwindSafe for FnServiceConfig<F, Fut, Cfg, Srv, Err> where
    Cfg: RefUnwindSafe,
    Err: RefUnwindSafe,
    F: RefUnwindSafe,
    Fut: RefUnwindSafe,
    Srv: RefUnwindSafe

impl<F, Fut, Cfg, Srv, Err> Send for FnServiceConfig<F, Fut, Cfg, Srv, Err> where
    Cfg: Send,
    Err: Send,
    F: Send,
    Fut: Send,
    Srv: Send

impl<F, Fut, Cfg, Srv, Err> Sync for FnServiceConfig<F, Fut, Cfg, Srv, Err> where
    Cfg: Sync,
    Err: Sync,
    F: Sync,
    Fut: Sync,
    Srv: Sync

impl<F, Fut, Cfg, Srv, Err> Unpin for FnServiceConfig<F, Fut, Cfg, Srv, Err> where
    Cfg: Unpin,
    Err: Unpin,
    F: Unpin,
    Fut: Unpin,
    Srv: Unpin

impl<F, Fut, Cfg, Srv, Err> UnwindSafe for FnServiceConfig<F, Fut, Cfg, Srv, Err> where
    Cfg: UnwindSafe,
    Err: UnwindSafe,
    F: UnwindSafe,
    Fut: UnwindSafe,
    Srv: 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> IntoServiceFactory<T> for T where
    T: ServiceFactory
[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.