[][src]Struct actix_service::dev::FnServiceNoConfig

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

Converter for Fn() -> Future<Service> fn

Trait Implementations

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

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

impl<F, Cfg, Srv, Req, Fut, Err> ServiceFactory<Req> for FnServiceNoConfig<F, Cfg, Srv, Req, Fut, Err> where
    F: Fn() -> 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 Service = Srv

The kind of Service created by this factory.

type Config = Cfg

Service factory configuration.

type InitError = Err

Errors potentially raised while building a service.

type Future = Fut

The future of the Service instance.

Auto Trait Implementations

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

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

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