pub trait JsonRpcProviderType<T: Target>: ProviderType<T> {
    // Required method
    fn batch<'life0, 'async_trait, U>(
        &'life0 self,
        targets: Vec<T>
    ) -> Pin<Box<dyn Future<Output = Result<Vec<JsonRpcResult<U>>, JsonRpcError>> + Send + 'async_trait>>
       where U: 'async_trait + DeserializeOwned,
             Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn batch<'life0, 'async_trait, U>( &'life0 self, targets: Vec<T> ) -> Pin<Box<dyn Future<Output = Result<Vec<JsonRpcResult<U>>, JsonRpcError>> + Send + 'async_trait>>
where U: 'async_trait + DeserializeOwned, Self: 'async_trait, 'life0: 'async_trait,

batch isomorphic JSON-RPC requests

Object Safety§

This trait is not object safe.

Implementors§