[][src]Trait twitch_api2::client::Client

pub trait Client<'a>: Send + 'a {
    type Error: Error + Send + Sync + 'static;
    pub fn req(
        &'a self,
        request: Req
    ) -> BoxedFuture<'a, Result<Response, Self::Error>>; }
This is supported on crate feature client only.

A client that can do requests

Associated Types

type Error: Error + Send + Sync + 'static[src]

Error returned by the client

Loading content...

Required methods

pub fn req(
    &'a self,
    request: Req
) -> BoxedFuture<'a, Result<Response, Self::Error>>
[src]

Send a request

Loading content...

Implementations on Foreign Types

impl<'a> Client<'a> for ReqwestClient[src]

This is supported on crate feature reqwest_client only.

type Error = Error

impl<'a> Client<'a> for SurfClient[src]

This is supported on crate feature surf_client only.

type Error = SurfError

Loading content...

Implementors

impl<'a> Client<'a> for DummyHttpClient[src]

type Error = DummyHttpClient

Loading content...