[][src]Trait requiem_service::IntoServiceFactory

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

Trait for types that can be converted to a ServiceFactory

Required methods

fn into_factory(self) -> T

Convert Self to a ServiceFactory

Loading content...

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]

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...