pub trait Receipt:
Send
+ Sync
+ Unpin
+ Clone
+ Default
+ Debug
+ TxReceipt
+ Encodable
+ Decodable
+ Serialize
+ for<'de> Deserialize<'de> {
// Required methods
fn tx_type(&self) -> u8;
fn receipts_root(receipts: &[&Self]) -> B256;
}
Expand description
Abstraction of a receipt.
Required Methods§
Sourcefn receipts_root(receipts: &[&Self]) -> B256
fn receipts_root(receipts: &[&Self]) -> B256
Calculates the receipts root of the given receipts.
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.