[][src]Trait interfacer_http::HttpClient

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

Associated Types

type Err: Error

Loading content...

Required methods

fn request<'life0, 'async_trait>(
    &'life0 self,
    req: Request<Vec<u8>>
) -> Pin<Box<dyn Future<Output = Result<Response<Vec<u8>>, Self::Err>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

fn helper(&self) -> &Helper

Loading content...

Implementors

Loading content...