Skip to main content

IntoBoxHttpService

Trait IntoBoxHttpService 

Source
pub trait IntoBoxHttpService: Sized {
    // Required method
    fn into_box(self) -> BoxHttpService;
}
Available on crate feature tower only.
Expand description

Extension trait to box a configured service stack.

Required Methods§

Source

fn into_box(self) -> BoxHttpService

Boxes self as BoxHttpService.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<S> IntoBoxHttpService for S
where S: Service<HttpRequest, Response = HttpResponse, Error = Error> + Clone + Send + 'static, S::Future: Send + 'static,