Trait ntex_service::IntoServiceFactory[][src]

pub trait IntoServiceFactory<T> where
    T: ServiceFactory
{ fn into_factory(self) -> T; }
Expand description

Trait for types that can be converted to a ServiceFactory

Required methods

fn into_factory(self) -> T[src]

Convert Self to a ServiceFactory

Implementors

impl<F, C, S, R, E> IntoServiceFactory<FnServiceNoConfig<F, C, S, R, E>> for F where
    F: Fn() -> R,
    R: Future<Output = Result<S, E>>,
    S: Service
[src]

fn into_factory(self) -> FnServiceNoConfig<F, C, S, R, E>[src]

impl<F, Fut, Req, Res, Err, Cfg> IntoServiceFactory<FnServiceFactory<F, Fut, Req, Res, Err, Cfg, fn()>> for F where
    F: Fn(Req) -> Fut + Clone,
    Fut: Future<Output = Result<Res, Err>>, 
[src]

fn into_factory(self) -> FnServiceFactory<F, Fut, Req, Res, Err, Cfg>[src]

impl<T> IntoServiceFactory<T> for T where
    T: ServiceFactory
[src]

fn into_factory(self) -> T[src]