pub struct Receipt<T = Log> {
pub status: Eip658Value,
pub cumulative_gas_used: u64,
pub logs: Vec<T>,
}
Expand description
Receipt containing result of transaction execution.
Fields§
§status: Eip658Value
If transaction is executed successfully.
This is the statusCode
cumulative_gas_used: u64
Gas used
logs: Vec<T>
Log send from contracts.
Implementations§
Source§impl<T> Receipt<T>
impl<T> Receipt<T>
Sourcepub fn bloom_slow(&self) -> Bloom
pub fn bloom_slow(&self) -> Bloom
Calculates Log
’s bloom filter. this is slow operation and ReceiptWithBloom can
be used to cache this value.
Sourcepub fn with_bloom(self) -> ReceiptWithBloom<Self>
pub fn with_bloom(self) -> ReceiptWithBloom<Self>
Calculates the bloom filter for the receipt and returns the ReceiptWithBloom container type.
Source§impl<T: Encodable> Receipt<T>
impl<T: Encodable> Receipt<T>
Sourcepub fn rlp_encoded_fields_length_with_bloom(&self, bloom: &Bloom) -> usize
pub fn rlp_encoded_fields_length_with_bloom(&self, bloom: &Bloom) -> usize
Returns length of RLP-encoded receipt fields with the given Bloom
without an RLP header.
Sourcepub fn rlp_encode_fields_with_bloom(&self, bloom: &Bloom, out: &mut dyn BufMut)
pub fn rlp_encode_fields_with_bloom(&self, bloom: &Bloom, out: &mut dyn BufMut)
RLP-encodes receipt fields with the given Bloom
without an RLP header.
Sourcepub fn rlp_header_with_bloom(&self, bloom: &Bloom) -> Header
pub fn rlp_header_with_bloom(&self, bloom: &Bloom) -> Header
Returns RLP header for this receipt encoding with the given Bloom
.
Source§impl<T: Decodable> Receipt<T>
impl<T: Decodable> Receipt<T>
Sourcepub fn rlp_decode_fields_with_bloom(
buf: &mut &[u8],
) -> Result<ReceiptWithBloom<Self>>
pub fn rlp_decode_fields_with_bloom( buf: &mut &[u8], ) -> Result<ReceiptWithBloom<Self>>
RLP-decodes receipt’s field with a Bloom
.
Does not expect an RLP header.
Trait Implementations§
Source§impl<'arbitrary, T: Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for Receipt<T>
impl<'arbitrary, T: Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for Receipt<T>
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self
from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
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<'de, T> Deserialize<'de> for Receipt<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Receipt<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<'de, T: Deserialize<'de> + Clone> DeserializeAs<'de, Receipt<T>> for Receipt<'de, T>
Available on crate features serde
and serde-bincode-compat
only.
impl<'de, T: Deserialize<'de> + Clone> DeserializeAs<'de, Receipt<T>> for Receipt<'de, T>
serde
and serde-bincode-compat
only.Source§fn deserialize_as<D>(deserializer: D) -> Result<Receipt<T>, D::Error>where
D: Deserializer<'de>,
fn deserialize_as<D>(deserializer: D) -> Result<Receipt<T>, D::Error>where
D: Deserializer<'de>,
Source§impl<'a, T: Clone> From<&'a Receipt<T>> for Receipt<'a, T>
Available on crate features serde
and serde-bincode-compat
only.
impl<'a, T: Clone> From<&'a Receipt<T>> for Receipt<'a, T>
serde
and serde-bincode-compat
only.Source§impl<'a, T: Clone> From<Receipt<'a, T>> for Receipt<T>
Available on crate features serde
and serde-bincode-compat
only.
impl<'a, T: Clone> From<Receipt<'a, T>> for Receipt<T>
serde
and serde-bincode-compat
only.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: Decodable> RlpDecodableReceipt for Receipt<T>
impl<T: Decodable> RlpDecodableReceipt for Receipt<T>
Source§fn rlp_decode_with_bloom(buf: &mut &[u8]) -> Result<ReceiptWithBloom<Self>>
fn rlp_decode_with_bloom(buf: &mut &[u8]) -> Result<ReceiptWithBloom<Self>>
Bloom
into ReceiptWithBloom
instance.Source§impl<T: Encodable> RlpEncodableReceipt for Receipt<T>
impl<T: Encodable> RlpEncodableReceipt for Receipt<T>
Source§fn rlp_encoded_length_with_bloom(&self, bloom: &Bloom) -> usize
fn rlp_encoded_length_with_bloom(&self, bloom: &Bloom) -> usize
Source§fn rlp_encode_with_bloom(&self, bloom: &Bloom, out: &mut dyn BufMut)
fn rlp_encode_with_bloom(&self, bloom: &Bloom, out: &mut dyn BufMut)
Source§impl<T: Serialize + Clone> SerializeAs<Receipt<T>> for Receipt<'_, T>
Available on crate features serde
and serde-bincode-compat
only.
impl<T: Serialize + Clone> SerializeAs<Receipt<T>> for Receipt<'_, T>
serde
and serde-bincode-compat
only.Source§fn serialize_as<S>(
source: &Receipt<T>,
serializer: S,
) -> Result<S::Ok, S::Error>where
S: Serializer,
fn serialize_as<S>(
source: &Receipt<T>,
serializer: S,
) -> Result<S::Ok, S::Error>where
S: Serializer,
Source§impl<T> TxReceipt for Receipt<T>
impl<T> TxReceipt for Receipt<T>
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 cumulative_gas_used(&self) -> u64
fn cumulative_gas_used(&self) -> u64
Source§fn bloom_cheap(&self) -> Option<Bloom>
fn bloom_cheap(&self) -> Option<Bloom>
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.impl<T: Eq> Eq for Receipt<T>
impl<T> StructuralPartialEq for Receipt<T>
Auto Trait Implementations§
impl<T> Freeze for Receipt<T>
impl<T> RefUnwindSafe for Receipt<T>where
T: RefUnwindSafe,
impl<T> Send for Receipt<T>where
T: Send,
impl<T> Sync for Receipt<T>where
T: Sync,
impl<T> Unpin for Receipt<T>where
T: Unpin,
impl<T> UnwindSafe for Receipt<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: 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: 72 bytes