pub trait BatchTransport: Transport {
// Required method
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 + 'async_trait,
I::IntoIter: Send,
M: Into<String> + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
A JSON-RPC 2.0 transport supporting batch requests.
Required Methods§
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.