Trait async_jsonrpc_client::BatchTransport [−][src]
A JSON-RPC 2.0 transport supporting batch requests.
Required methods
#[must_use]fn request_batch<'life0, 'async_trait, I, M>(
&'life0 self,
batch: I
) -> Pin<Box<dyn Future<Output = Result<Vec<Output>, Self::Error>> + Send + 'async_trait>> where
I: IntoIterator<Item = (M, Option<Params>)> + Send,
I::IntoIter: Send,
M: Into<String>,
I: 'async_trait,
M: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
batch: I
) -> Pin<Box<dyn Future<Output = Result<Vec<Output>, Self::Error>> + Send + 'async_trait>> where
I: IntoIterator<Item = (M, Option<Params>)> + Send,
I::IntoIter: Send,
M: Into<String>,
I: 'async_trait,
M: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Send a batch of RPC calls with the given method and parameters.
Implementors
impl BatchTransport for HttpClient
[src]
fn request_batch<'life0, 'async_trait, I, M>(
&'life0 self,
batch: I
) -> Pin<Box<dyn Future<Output = Result<Vec<Output>, Self::Error>> + Send + 'async_trait>> where
I: IntoIterator<Item = (M, Option<Params>)> + Send,
I::IntoIter: Send,
M: Into<String>,
I: 'async_trait,
M: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
batch: I
) -> Pin<Box<dyn Future<Output = Result<Vec<Output>, Self::Error>> + Send + 'async_trait>> where
I: IntoIterator<Item = (M, Option<Params>)> + Send,
I::IntoIter: Send,
M: Into<String>,
I: 'async_trait,
M: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
impl BatchTransport for WsClient
[src]
fn request_batch<'life0, 'async_trait, I, M>(
&'life0 self,
batch: I
) -> Pin<Box<dyn Future<Output = Result<Vec<Output>, Self::Error>> + Send + 'async_trait>> where
I: IntoIterator<Item = (M, Option<Params>)> + Send,
I::IntoIter: Send,
M: Into<String>,
I: 'async_trait,
M: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
batch: I
) -> Pin<Box<dyn Future<Output = Result<Vec<Output>, Self::Error>> + Send + 'async_trait>> where
I: IntoIterator<Item = (M, Option<Params>)> + Send,
I::IntoIter: Send,
M: Into<String>,
I: 'async_trait,
M: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,