Allow tx payloads to be boxed (#1690)

* Allow tx payloads to be boxed

* Add example of boxed payloads

* explicit box import

* box import at top

* cargo fmt
This commit is contained in:
James Wilson
2024-07-29 17:10:49 +01:00
committed by GitHub
parent 99fa8ee2bf
commit 83ef8a9f13
3 changed files with 78 additions and 0 deletions
+8
View File
@@ -196,6 +196,14 @@
//! This example doesn't wait for the transaction to be included in a block; it just submits it and
//! hopes for the best!
//!
//! ### Boxing transaction payloads
//!
//! Transaction payloads can be boxed so that they all share a common type and can be stored together.
//!
//! ```rust,ignore
#![doc = include_str!("../../../examples/tx_boxed.rs")]
//! ```
//!
//! ### Custom handling of transaction status updates
//!
//! If you'd like more control or visibility over exactly which status updates are being emitted for