Trait NetworkProvider

Source
pub trait NetworkProvider: Sync + Send {
    // Required methods
    fn send<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        method: &'life1 HttpMethod,
        args: &'life2 RequestArgs,
    ) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn shutdown<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(), StatsigErr>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn send<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, method: &'life1 HttpMethod, args: &'life2 RequestArgs, ) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

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

Implementors§