reqwest_enum::provider

Trait JsonRpcProviderType

source
pub trait JsonRpcProviderType<T: Target>: ProviderType<T> {
    // Required methods
    fn batch<U: DeserializeOwned>(
        &self,
        targets: Vec<T>,
    ) -> impl Future<Output = Result<Vec<JsonRpcResult<U>>, JsonRpcError>>;
    fn batch_chunk_by<U: DeserializeOwned>(
        &self,
        targets: Vec<T>,
        chunk_size: usize,
    ) -> impl Future<Output = Result<Vec<JsonRpcResult<U>>, JsonRpcError>>;
}

Required Methods§

source

fn batch<U: DeserializeOwned>( &self, targets: Vec<T>, ) -> impl Future<Output = Result<Vec<JsonRpcResult<U>>, JsonRpcError>>

batch isomorphic JSON-RPC requests

source

fn batch_chunk_by<U: DeserializeOwned>( &self, targets: Vec<T>, chunk_size: usize, ) -> impl Future<Output = Result<Vec<JsonRpcResult<U>>, JsonRpcError>>

Object Safety§

This trait is not object safe.

Implementors§