pub struct ReceiptWithBloom<T = Receipt> {
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 fn map_receipt<U>(self, f: impl FnOnce(R) -> U) -> ReceiptWithBloom<U>
pub fn map_receipt<U>(self, f: impl FnOnce(R) -> U) -> ReceiptWithBloom<U>
Converts the receipt type by applying the given closure to it.
Returns the type with the new receipt type.
Sourcepub const fn new(receipt: R, logs_bloom: Bloom) -> ReceiptWithBloom<R>
pub const fn new(receipt: R, logs_bloom: Bloom) -> ReceiptWithBloom<R>
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
Source§impl<L> ReceiptWithBloom<Receipt<L>>
impl<L> ReceiptWithBloom<Receipt<L>>
Sourcepub fn map_logs<U>(self, f: impl FnMut(L) -> U) -> ReceiptWithBloom<Receipt<U>>
pub fn map_logs<U>(self, f: impl FnMut(L) -> U) -> ReceiptWithBloom<Receipt<U>>
Converts the receipt’s log type by applying a function to each log.
Returns the receipt with the new log type.
Sourcepub fn into_primitives_receipt(self) -> ReceiptWithBloom
pub fn into_primitives_receipt(self) -> ReceiptWithBloom
Converts a ReceiptWithBloom
with a custom log type into a ReceiptWithBloom
with the
primitives Log
type by converting the logs.
This is useful if log types that embed the primitives log type, e.g. the log receipt rpc type.
Trait Implementations§
Source§impl<T> Clone for ReceiptWithBloom<T>where
T: Clone,
impl<T> Clone for ReceiptWithBloom<T>where
T: Clone,
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 for ReceiptWithBloom<T>where
T: Debug,
impl<T> Debug for ReceiptWithBloom<T>where
T: Debug,
Source§impl<R> Decodable for ReceiptWithBloom<R>where
R: RlpDecodableReceipt,
impl<R> Decodable for ReceiptWithBloom<R>where
R: RlpDecodableReceipt,
Source§impl<T> Default for ReceiptWithBloom<T>where
T: Default,
impl<T> Default for ReceiptWithBloom<T>where
T: Default,
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<ReceiptWithBloom<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReceiptWithBloom<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<R> Encodable for ReceiptWithBloom<R>where
R: RlpEncodableReceipt,
impl<R> Encodable for ReceiptWithBloom<R>where
R: RlpEncodableReceipt,
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§fn from(receipt: R) -> ReceiptWithBloom<R>
fn from(receipt: R) -> ReceiptWithBloom<R>
Converts to this type from the input type.
Source§impl<T> PartialEq for ReceiptWithBloom<T>where
T: PartialEq,
impl<T> PartialEq for ReceiptWithBloom<T>where
T: PartialEq,
Source§impl<T> Serialize for ReceiptWithBloom<T>where
T: Serialize,
impl<T> Serialize for ReceiptWithBloom<T>where
T: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 logs(&self) -> &[<ReceiptWithBloom<R> as TxReceipt>::Log]
fn logs(&self) -> &[<ReceiptWithBloom<R> as TxReceipt>::Log]
Returns the logs emitted by this transaction.
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.Source§impl<R> Typed2718 for ReceiptWithBloom<R>where
R: Typed2718,
impl<R> Typed2718 for ReceiptWithBloom<R>where
R: Typed2718,
Source§fn is_eip2930(&self) -> bool
fn is_eip2930(&self) -> bool
Returns true if the type is an EIP-2930 transaction.
Source§fn is_eip1559(&self) -> bool
fn is_eip1559(&self) -> bool
Returns true if the type is an EIP-1559 transaction.
Source§fn is_eip4844(&self) -> bool
fn is_eip4844(&self) -> bool
Returns true if the type is an EIP-4844 transaction.
Source§fn is_eip7702(&self) -> bool
fn is_eip7702(&self) -> bool
Returns true if the type is an EIP-7702 transaction.
impl<T> Eq for ReceiptWithBloom<T>where
T: Eq,
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§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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more