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

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

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

Trait Implementations

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

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

type Response = Srv::Response

Responses given by the created services.

type Error = Srv::Error

Errors produced by the created services.

type Config = Cfg

Service factory configuration.

type Service = Srv

The kind of Service created by this factory.

type InitError = Err

Errors potentially raised while building a service.

type Future = Fut

The future of the Service instance.

Auto Trait Implementations

impl<F, Fut, Cfg, Srv, Req, Err> Send for FnServiceConfig<F, Fut, Cfg, Srv, Req, Err> where
    Cfg: Send,
    Err: Send,
    F: Send,
    Fut: Send,
    Req: Send,
    Srv: Send
[src]

impl<F, Fut, Cfg, Srv, Req, Err> Sync for FnServiceConfig<F, Fut, Cfg, Srv, Req, Err> where
    Cfg: Sync,
    Err: Sync,
    F: Sync,
    Fut: Sync,
    Req: Sync,
    Srv: Sync
[src]

impl<F, Fut, Cfg, Srv, Req, Err> Unpin for FnServiceConfig<F, Fut, Cfg, Srv, Req, Err> where
    Cfg: Unpin,
    Err: Unpin,
    F: Unpin,
    Fut: Unpin,
    Req: Unpin,
    Srv: 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.