pub trait ProviderType<T: Target> {
    // Required method
    fn request<'life0, 'async_trait>(
        &'life0 self,
        target: T
    ) -> Pin<Box<dyn Future<Output = Result<HTTPResponse, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn request<'life0, 'async_trait>( &'life0 self, target: T ) -> Pin<Box<dyn Future<Output = Result<HTTPResponse, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

request to target and return http response

Implementors§

source§

impl<T> ProviderType<T> for Provider<T>
where T: Target + Send,