Struct alloy_consensus::ReceiptWithBloom
source · pub struct ReceiptWithBloom<T = Receipt<Log>> {
pub receipt: T,
pub logs_bloom: Bloom,
}
Expand description
Fields§
§receipt: T
The receipt.
logs_bloom: Bloom
The bloom filter.
Implementations§
source§impl<R> ReceiptWithBloom<R>
impl<R> ReceiptWithBloom<R>
sourcepub const fn new(receipt: R, logs_bloom: Bloom) -> Self
pub const fn new(receipt: R, logs_bloom: Bloom) -> Self
Create new ReceiptWithBloom
sourcepub fn into_components(self) -> (R, Bloom)
pub fn into_components(self) -> (R, Bloom)
Consume the structure, returning the receipt and the bloom filter
Trait Implementations§
source§impl<T: Clone> Clone for ReceiptWithBloom<T>
impl<T: Clone> Clone for ReceiptWithBloom<T>
source§fn clone(&self) -> ReceiptWithBloom<T>
fn clone(&self) -> ReceiptWithBloom<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for ReceiptWithBloom<T>
impl<T: Debug> Debug for ReceiptWithBloom<T>
source§impl<R: RlpDecodableReceipt> Decodable for ReceiptWithBloom<R>
impl<R: RlpDecodableReceipt> Decodable for ReceiptWithBloom<R>
source§impl<T: Default> Default for ReceiptWithBloom<T>
impl<T: Default> Default for ReceiptWithBloom<T>
source§fn default() -> ReceiptWithBloom<T>
fn default() -> ReceiptWithBloom<T>
Returns the “default value” for a type. Read more
source§impl<'de, T> Deserialize<'de> for ReceiptWithBloom<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ReceiptWithBloom<T>where
T: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<R: RlpEncodableReceipt> Encodable for ReceiptWithBloom<R>
impl<R: RlpEncodableReceipt> Encodable for ReceiptWithBloom<R>
source§impl<R> Encodable2718 for ReceiptWithBloom<R>
impl<R> Encodable2718 for ReceiptWithBloom<R>
source§fn encode_2718_len(&self) -> usize
fn encode_2718_len(&self) -> usize
The length of the 2718 encoded envelope. This is the length of the type
flag + the length of the inner encoding.
source§fn encode_2718(&self, out: &mut dyn BufMut)
fn encode_2718(&self, out: &mut dyn BufMut)
source§fn encoded_2718(&self) -> Vec<u8> ⓘ
fn encoded_2718(&self) -> Vec<u8> ⓘ
Encode the transaction according to [EIP-2718] rules. First a 1-byte
type flag in the range 0x0-0x7f, then the body of the transaction. Read more
source§fn trie_hash(&self) -> FixedBytes<32>
fn trie_hash(&self) -> FixedBytes<32>
Compute the hash as committed to in the MPT trie. This hash is used
ONLY by the Ethereum merkle-patricia trie and associated proofs. Do not
call this method unless you are building a full or light client. Read more
source§fn network_len(&self) -> usize
fn network_len(&self) -> usize
The length of the 2718 encoded envelope in network format. This is the
length of the header + the length of the type flag and inner encoding.
source§fn network_encode(&self, out: &mut dyn BufMut)
fn network_encode(&self, out: &mut dyn BufMut)
Encode in the network format. The network format is used ONLY by the
Ethereum p2p protocol. Do not call this method unless you are building
a p2p protocol client. Read more
source§impl<R> From<R> for ReceiptWithBloom<R>where
R: TxReceipt,
impl<R> From<R> for ReceiptWithBloom<R>where
R: TxReceipt,
source§impl<T> From<ReceiptWithBloom<Receipt<T>>> for Receipt<T>
impl<T> From<ReceiptWithBloom<Receipt<T>>> for Receipt<T>
source§fn from(receipt_with_bloom: ReceiptWithBloom<Self>) -> Self
fn from(receipt_with_bloom: ReceiptWithBloom<Self>) -> Self
Consume the structure, returning only the receipt
source§impl<T: PartialEq> PartialEq for ReceiptWithBloom<T>
impl<T: PartialEq> PartialEq for ReceiptWithBloom<T>
source§fn eq(&self, other: &ReceiptWithBloom<T>) -> bool
fn eq(&self, other: &ReceiptWithBloom<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> Serialize for ReceiptWithBloom<T>where
T: Serialize,
impl<T> Serialize for ReceiptWithBloom<T>where
T: Serialize,
source§impl<R> TxReceipt for ReceiptWithBloom<R>where
R: TxReceipt,
impl<R> TxReceipt for ReceiptWithBloom<R>where
R: TxReceipt,
source§fn status_or_post_state(&self) -> Eip658Value
fn status_or_post_state(&self) -> Eip658Value
Returns the status or post state of the transaction. Read more
source§fn bloom(&self) -> Bloom
fn bloom(&self) -> Bloom
Returns the bloom filter for the logs in the receipt. This operation
may be expensive.
source§fn bloom_cheap(&self) -> Option<Bloom>
fn bloom_cheap(&self) -> Option<Bloom>
Returns the bloom filter for the logs in the receipt, if it is cheap to
compute.
source§fn cumulative_gas_used(&self) -> u64
fn cumulative_gas_used(&self) -> u64
Returns the cumulative gas used in the block after this transaction was executed.
source§fn with_bloom_ref(&self) -> ReceiptWithBloom<&Self>
fn with_bloom_ref(&self) -> ReceiptWithBloom<&Self>
Returns
ReceiptWithBloom
with the computed bloom filter Self::bloom
and a reference
to the receipt.source§fn into_with_bloom(self) -> ReceiptWithBloom<Self>
fn into_with_bloom(self) -> ReceiptWithBloom<Self>
Consumes the type and converts it into
ReceiptWithBloom
with the computed bloom filter
Self::bloom
and the receipt.impl<T: Eq> Eq for ReceiptWithBloom<T>
impl<T> StructuralPartialEq for ReceiptWithBloom<T>
Auto Trait Implementations§
impl<T> Freeze for ReceiptWithBloom<T>where
T: Freeze,
impl<T> RefUnwindSafe for ReceiptWithBloom<T>where
T: RefUnwindSafe,
impl<T> Send for ReceiptWithBloom<T>where
T: Send,
impl<T> Sync for ReceiptWithBloom<T>where
T: Sync,
impl<T> Unpin for ReceiptWithBloom<T>where
T: Unpin,
impl<T> UnwindSafe for ReceiptWithBloom<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.