pub trait BatchTransport: Transport {
type Batch: Future<Output = Result<Vec<Result<Value>>>>;
// Required method
fn send_batch<T>(&self, requests: T) -> Self::Batch
where T: IntoIterator<Item = (RequestId, Call)>;
}
Expand description
A transport implementation supporting batch requests.
Required Associated Types§
Required Methods§
Sourcefn send_batch<T>(&self, requests: T) -> Self::Batch
fn send_batch<T>(&self, requests: T) -> Self::Batch
Sends a batch of prepared RPC calls.
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.