Trait reqwest_enum::provider::JsonRpcProviderType
source · 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§
sourcefn 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,
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.