[−][src]Trait twitter_client::traits::HttpService
An HTTP client (like hyper::Client
).
This is just an alias for tower_service::Service
introduced to reduce the number of type
parameters.
Associated Types
type ResponseBody: Body
[src]
Body of the responses given by the service.
type Error
[src]
type Future: Future<Output = Result<Response<Self::ResponseBody>, Self::Error>>
[src]
Required methods
pub fn poll_ready(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
pub fn call(&mut self, request: Request<B>) -> Self::Future
[src]
Implementors
impl<S: ?Sized, ReqB, ResB> HttpService<ReqB> for S where
S: Service<Request<ReqB>, Response = Response<ResB>>,
ResB: Body,
[src]
S: Service<Request<ReqB>, Response = Response<ResB>>,
ResB: Body,