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§
Sourcefn batch<U: DeserializeOwned>(
&self,
targets: Vec<T>,
) -> impl Future<Output = Result<Vec<JsonRpcResult<U>>, JsonRpcError>>
fn batch<U: DeserializeOwned>( &self, targets: Vec<T>, ) -> impl Future<Output = Result<Vec<JsonRpcResult<U>>, JsonRpcError>>
batch isomorphic JSON-RPC requests
fn batch_chunk_by<U: DeserializeOwned>( &self, targets: Vec<T>, chunk_size: usize, ) -> impl Future<Output = Result<Vec<JsonRpcResult<U>>, JsonRpcError>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.