Service
docs. (#510)futures 0.3
.std::future::Future
.std::future::Future
Service
's Request
associated type to be a generic instead.Before:
impl Service for Client { type Request = HttpRequest; type Response = HttpResponse; // ... }
After:
impl Service<HttpRequest> for Client { type Response = HttpResponse; // ... }
NewService
, use tower_util::MakeService
instead.Service::ready
and Ready
, use tower_util::ServiceExt
instead.