Trait async_jsonrpc_client::BatchTransport[][src]

pub trait BatchTransport: Transport {
#[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
; }

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]

Send a batch of RPC calls with the given method and parameters.

Loading content...

Implementors

impl BatchTransport for HttpClient[src]

impl BatchTransport for WsClient[src]

Loading content...