Skip to main content

IntoServiceFactory

Trait IntoServiceFactory 

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

Conversion into a ServiceFactory.

Required Methods§

Source

fn into_factory(self) -> Sf

Converts this value into a service factory.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F, S, St, Req, Err> IntoServiceFactory<FnFactory<F, S, St, Req, Err>, St, Req> for F
where F: AsyncFn(&St) -> Result<S, Err>, S: Service<St, Req>,

Source§

impl<F, St, Req, Res, Err> IntoServiceFactory<FnServiceStFactory<F, St, Req, Res, Err>, St, Req> for F
where F: AsyncFn(&St, Req) -> Result<Res, Err> + Clone,

Source§

impl<F, St, Req, Res, Err> IntoServiceFactory<FnServiceStFactory<F, St, Req, Res, Err>, St, Req> for FnServiceSt<F, St, Req, Res, Err>
where F: AsyncFn(&St, Req) -> Result<Res, Err> + Clone,

Source§

impl<Sf, St, Req> IntoServiceFactory<Sf, St, Req> for Sf
where Sf: ServiceFactory<St, Req>,