actix_service::boxed

Function service

Source
pub fn service<S, Req>(service: S) -> BoxService<Req, S::Response, S::Error>
where S: Service<Req> + 'static, Req: 'static, S::Future: 'static,
Expand description

Wraps service as a trait object using BoxService.