[−][src]Trait kayrx::service::IntoServiceFactory
Trait for types that can be converted to a ServiceFactory
Required methods
fn into_factory(self) -> T
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]
F: Fn() -> R,
R: Future<Output = Result<S, E>>,
S: Service,
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>> for F where
F: Fn(Req) -> Fut + Clone,
Fut: Future<Output = Result<Res, Err>>,
[src]
F: Fn(Req) -> Fut + Clone,
Fut: Future<Output = Result<Res, Err>>,
fn into_factory(self) -> FnServiceFactory<F, Fut, Req, Res, Err, Cfg>
[src]
impl<T> IntoServiceFactory<T> for T where
T: ServiceFactory,
[src]
T: ServiceFactory,