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, Req, Res, Err, Cfg> IntoServiceFactory<FnServiceFactory<F, Req, Res, Err, Cfg>, Req, Cfg> for F
where F: AsyncFn(Req) -> Result<Res, Err> + Clone,

Source§

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