[][src]Trait ntex::service::IntoServiceFactory

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

Trait for types that can be converted to a ServiceFactory

Required methods

pub fn into_factory(self) -> T[src]

Convert Self to a ServiceFactory

Loading content...

Implementors

impl<Err, T> IntoServiceFactory<T> for Resource<Err, T> where
    T: ServiceFactory<Config = (), Request = WebRequest<Err>, Response = WebResponse, Error = Err::Container, InitError = ()>,
    Err: ErrorRenderer
[src]

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]

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

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

Loading content...