Struct alloy_consensus::receipt::receipts::ReceiptWithBloom
source · pub struct ReceiptWithBloom<T = Log> {
pub receipt: Receipt<T>,
pub logs_bloom: Bloom,
}
Expand description
Fields§
§receipt: Receipt<T>
The receipt.
logs_bloom: Bloom
The bloom filter.
Implementations§
source§impl<T: Encodable> ReceiptWithBloom<T>
impl<T: Encodable> ReceiptWithBloom<T>
sourcefn receipt_rlp_header(&self) -> Header
fn receipt_rlp_header(&self) -> Header
Returns the rlp header for the receipt payload.
sourcefn encode_fields(&self, out: &mut dyn BufMut)
fn encode_fields(&self, out: &mut dyn BufMut)
Encodes the receipt data.
fn payload_len(&self) -> usize
source§impl<T> ReceiptWithBloom<T>
impl<T> ReceiptWithBloom<T>
sourcepub const fn new(receipt: Receipt<T>, logs_bloom: Bloom) -> Self
pub const fn new(receipt: Receipt<T>, logs_bloom: Bloom) -> Self
Create new ReceiptWithBloom
sourcepub fn into_components(self) -> (Receipt<T>, Bloom)
pub fn into_components(self) -> (Receipt<T>, Bloom)
Consume the structure, returning the receipt and the bloom filter
sourcefn decode_receipt(buf: &mut &[u8]) -> Result<Self>where
T: Decodable,
fn decode_receipt(buf: &mut &[u8]) -> Result<Self>where
T: Decodable,
Decodes the receipt payload
Trait Implementations§
source§impl<'a, T> Arbitrary<'a> for ReceiptWithBloom<T>where
T: Arbitrary<'a>,
Available on crate feature arbitrary
only.
impl<'a, T> Arbitrary<'a> for ReceiptWithBloom<T>where
T: Arbitrary<'a>,
Available on crate feature
arbitrary
only.source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. 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>
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<T: Decodable> Decodable for ReceiptWithBloom<T>
impl<T: Decodable> Decodable for ReceiptWithBloom<T>
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<T: Encodable> Encodable for ReceiptWithBloom<T>
impl<T: Encodable> Encodable for ReceiptWithBloom<T>
source§impl<T> From<ReceiptWithBloom<T>> for Receipt<T>
impl<T> From<ReceiptWithBloom<T>> for Receipt<T>
source§fn from(receipt_with_bloom: ReceiptWithBloom<T>) -> Self
fn from(receipt_with_bloom: ReceiptWithBloom<T>) -> 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<T> TxReceipt<T> for ReceiptWithBloom<T>
impl<T> TxReceipt<T> for ReceiptWithBloom<T>
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) -> u128
fn cumulative_gas_used(&self) -> u128
Returns the cumulative gas used in the block after this transaction was executed.
impl<T: Eq> Eq for ReceiptWithBloom<T>
impl<T> StructuralPartialEq for ReceiptWithBloom<T>
Auto Trait Implementations§
impl<T> Freeze for ReceiptWithBloom<T>
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> 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 moreimpl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 336 bytes