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 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) -> 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
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<Receipt<Log>>
pub fn into_primitives_receipt(self) -> ReceiptWithBloom<Receipt<Log>>
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<'a, R> Arbitrary<'a> for ReceiptWithBloom<R>where
R: Arbitrary<'a>,
Available on crate feature arbitrary
only.
impl<'a, R> Arbitrary<'a> for ReceiptWithBloom<R>where
R: Arbitrary<'a>,
arbitrary
only.Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Self
from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Self
from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured
this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Unstructured
this type
needs to construct itself. Read moreSource§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>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>
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>,
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
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> ⓘ
Source§fn trie_hash(&self) -> FixedBytes<32>
fn trie_hash(&self) -> FixedBytes<32>
Source§fn network_len(&self) -> usize
fn network_len(&self) -> usize
Source§fn network_encode(&self, out: &mut dyn BufMut)
fn network_encode(&self, out: &mut dyn BufMut)
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§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
Source§fn bloom(&self) -> Bloom
fn bloom(&self) -> Bloom
Source§fn bloom_cheap(&self) -> Option<Bloom>
fn bloom_cheap(&self) -> Option<Bloom>
Source§fn cumulative_gas_used(&self) -> u64
fn cumulative_gas_used(&self) -> u64
Source§fn with_bloom_ref(&self) -> ReceiptWithBloom<&Self>
fn with_bloom_ref(&self) -> ReceiptWithBloom<&Self>
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>
ReceiptWithBloom
with the computed bloom filter
Self::bloom
and the receipt.Source§impl<R: Typed2718> Typed2718 for ReceiptWithBloom<R>
impl<R: Typed2718> Typed2718 for ReceiptWithBloom<R>
Source§fn is_eip2930(&self) -> bool
fn is_eip2930(&self) -> bool
Source§fn is_eip1559(&self) -> bool
fn is_eip1559(&self) -> bool
Source§fn is_eip4844(&self) -> bool
fn is_eip4844(&self) -> bool
Source§fn is_eip7702(&self) -> bool
fn is_eip7702(&self) -> bool
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
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§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> ⓘ
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> ⓘ
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 moreSource§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.