Trait BoxService

Source
pub trait BoxService<Request, Response, E> {
    // Required method
    fn into_boxed(self) -> BoxedService<Request, Response, E>;
}
Expand description

Trait for converting a service into a boxed service. Trait for converting a service into a boxed service.

This trait provides a method to convert any compatible service into a BoxedService, facilitating type erasure.

Required Methods§

Source

fn into_boxed(self) -> BoxedService<Request, Response, E>

Implementors§

Source§

impl<T, Request, Response, E> BoxService<Request, Response, E> for T
where T: Service<Request, Response = Response, Error = E> + 'static, Request: 'static,