TowerServiceCompat

Trait TowerServiceCompat 

Source
pub trait TowerServiceCompat<QB, SB, E, Fut> {
    // Provided method
    fn compat(self) -> TowerServiceHandler<Self, QB>
       where Self: Sized { ... }
}
Expand description

Trait for tower service compat.

Provided Methods§

Source

fn compat(self) -> TowerServiceHandler<Self, QB>
where Self: Sized,

Converts a tower service to a salvo handler.

Implementors§

Source§

impl<T, QB, SB, E, Fut> TowerServiceCompat<QB, SB, E, Fut> for T
where QB: From<ReqBody> + Send + Sync + 'static, SB: Body + Send + Sync + 'static, <SB as Body>::Data: Into<Bytes> + Send + Debug + 'static, <SB as Body>::Error: Error + Send + Sync + 'static, E: Error + Send + Sync + 'static, T: Service<Request<ReqBody>, Response = Response<SB>, Future = Fut> + Clone + Send + Sync + 'static, Fut: Future<Output = Result<Response<SB>, E>> + Send + 'static,