tomusdrw / rust-web3

Ethereum JSON-RPC multi-transport client. Rust implementation of web3 library. ENS address: rust-web3.eth
MIT License
1.45k stars 465 forks source link

Document the cloning behavior for Batch #643

Closed marmistrz closed 1 year ago

marmistrz commented 2 years ago

We could consider adding something like

impl<T: BatchTransport> Batch<T> {
    pub fn deep_clone(&self) -> Self {
        Self::new(self.transport.clone())
    }
}

or perhaps this is what we'd like to use for Clone, actually?