Trait RpcTransport

pub trait RpcTransport: Send + Sync {
    // Required method
    fn post_json_bytes<'life0, 'life1, 'async_trait>(
        &'life0 self,
        url: &'life1 str,
        body: Vec<u8>,
    ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}

Required Methods§

fn post_json_bytes<'life0, 'life1, 'async_trait>( &'life0 self, url: &'life1 str, body: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Implementations on Foreign Types§

§

impl RpcTransport for Client

§

fn post_json_bytes<'life0, 'life1, 'async_trait>( &'life0 self, url: &'life1 str, body: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Client: 'async_trait,

Implementors§