Trait salvo_core::tower_compat::TowerServiceCompat

source ·
pub trait TowerServiceCompat<QB, SB, E, Fut> {
    // Provided method
    fn compat(self) -> TowerServiceHandler<Self, QB>
       where Self: Sized { ... }
}
Available on crate feature tower-compat only.
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::Data: Into<Bytes> + Send + Debug + 'static, SB::Error: StdError + Send + Sync + 'static, E: StdError + 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,