Trait dragonfly_client_backend::Backend

source ·
pub trait Backend {
    // Required methods
    fn head<'life0, 'async_trait>(
        &'life0 self,
        request: HeadRequest
    ) -> Pin<Box<dyn Future<Output = Result<HeadResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get<'life0, 'async_trait>(
        &'life0 self,
        request: GetRequest
    ) -> Pin<Box<dyn Future<Output = Result<GetResponse<Body>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn head<'life0, 'async_trait>( &'life0 self, request: HeadRequest ) -> Pin<Box<dyn Future<Output = Result<HeadResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn get<'life0, 'async_trait>( &'life0 self, request: GetRequest ) -> Pin<Box<dyn Future<Output = Result<GetResponse<Body>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§