Skip to main content

Transport

Trait Transport 

Source
pub trait Transport {
    // Required method
    fn fetch<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        headers: HeaderMap,
        method: Method,
        body: Option<Vec<u8>>,
        query_params: Option<&'life2 [(Cow<'static, str>, Cow<'static, str>)]>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn fetch<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, path: &'life1 str, headers: HeaderMap, method: Method, body: Option<Vec<u8>>, query_params: Option<&'life2 [(Cow<'static, str>, Cow<'static, str>)]>, ) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§