Trait IntoServiceFactory

Source
pub trait IntoServiceFactory<T, Req, Cfg = ()>
where T: ServiceFactory<Req, Cfg>,
{ // Required method fn into_factory(self) -> T; }
Expand description

Trait for types that can be converted to a ServiceFactory

Required Methods§

Source

fn into_factory(self) -> T

Convert Self to a ServiceFactory

Implementors§

Source§

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

Source§

impl<T, Req, Cfg> IntoServiceFactory<T, Req, Cfg> for T
where T: ServiceFactory<Req, Cfg>,