Trait actix_net::service::IntoNewService [−][src]
pub trait IntoNewService<T> where
T: NewService, { fn into_new_service(self) -> T; }
Trait for types that can be converted to a Service
Required Methods
fn into_new_service(self) -> T
Convert to an NewService
Implementors
impl<F, Req, Resp, Err, Fut> IntoNewService<FnNewService<F, Req, Resp, Err, Fut>> for F where
F: Fn(Req) -> Fut + Clone + 'static,
Fut: IntoFuture<Item = Resp, Error = Err>,impl<T> IntoNewService<T> for T where
T: NewService,