pub trait TowerCompatExt {
    // Provided method
    fn compat<ResBody, Err, Fut>(self) -> TowerCompatEndpoint<Self>
       where ResBody: Body + Send + Sync + 'static,
             ResBody::Data: Into<Bytes> + Send + 'static,
             ResBody::Error: StdError + Send + Sync + 'static,
             Err: Into<Error>,
             Self: Service<Request<BoxBody<Bytes, Error>>, Response = Response<ResBody>, Error = Err, Future = Fut> + Clone + Send + Sync + Sized + 'static,
             Fut: Future<Output = Result<Response<ResBody>, Err>> + Send + 'static { ... }
}
Expand description

Extension trait for tower service compat.

Provided Methods§

source

fn compat<ResBody, Err, Fut>(self) -> TowerCompatEndpoint<Self>
where ResBody: Body + Send + Sync + 'static, ResBody::Data: Into<Bytes> + Send + 'static, ResBody::Error: StdError + Send + Sync + 'static, Err: Into<Error>, Self: Service<Request<BoxBody<Bytes, Error>>, Response = Response<ResBody>, Error = Err, Future = Fut> + Clone + Send + Sync + Sized + 'static, Fut: Future<Output = Result<Response<ResBody>, Err>> + Send + 'static,

Converts a tower service to a poem endpoint.

Implementors§