Trait IntoService

Source
pub trait IntoService<T>
where T: Service,
{ // Required method fn into_service(self) -> T; }
Expand description

Trait for types that can be converted to a Service

Required Methods§

Source

fn into_service(self) -> T

Convert to a Service

Implementors§

Source§

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

Source§

impl<T> IntoService<T> for T
where T: Service,