Trait ntex::IntoService

source ·
pub trait IntoService<Svc, Req>where
    Svc: Service<Req>,{
    // Required method
    fn into_service(self) -> Svc;
}
Expand description

Trait for types that can be converted to a Service

Required Methods§

source

fn into_service(self) -> Svc

Convert to a Service

Implementors§

source§

impl<F, Fut, Req, Res, Err> IntoService<FnService<F, Req>, Req> for Fwhere F: Fn(Req) -> Fut, Fut: Future<Output = Result<Res, Err>>,

source§

impl<Svc, Req> IntoService<Svc, Req> for Svcwhere Svc: Service<Req>,