[][src]Trait ttv_rs::HttpClient

pub trait HttpClient<'a>: 'a + Send {
    type Error: 'static + Error + Send + Sync;
    fn req(
        &'a self,
        request: Request<Vec<u8>>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<u8>>, Self::Error>> + 'a + Send, Global>>; }

A client that can do requests

Associated Types

type Error: 'static + Error + Send + Sync

Error returned by the client

Loading content...

Required methods

fn req(
    &'a self,
    request: Request<Vec<u8>>
) -> Pin<Box<dyn Future<Output = Result<Response<Vec<u8>>, Self::Error>> + 'a + Send, Global>>

Send a request

Loading content...

Implementations on Foreign Types

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

type Error = Error

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

type Error = SurfError

Loading content...

Implementors

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

type Error = DummyHttpClient

Loading content...