Trait igd_next::aio::Provider

source ·
pub trait Provider {
    // Required method
    fn send_async<'life0, 'life1, 'life2, 'async_trait>(
        url: &'life0 str,
        action: &'life1 str,
        body: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<String, RequestError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Trait to allow abstracting over tokio and async-std.

Required Methods§

source

fn send_async<'life0, 'life1, 'life2, 'async_trait>( url: &'life0 str, action: &'life1 str, body: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<String, RequestError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Send an async request over the executor.

Object Safety§

This trait is not object safe.

Implementors§