pub struct Receipt<T = Log> {
pub status: Eip658Value,
pub cumulative_gas_used: u128,
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: u128
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<T>
pub fn with_bloom(self) -> ReceiptWithBloom<T>
Calculates the bloom filter for the receipt and returns the ReceiptWithBloom container type.
Trait Implementations§
source§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<Receipt<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Receipt<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> From<Receipt<T>> for ReceiptWithBloom<T>
impl<T> From<Receipt<T>> for ReceiptWithBloom<T>
source§fn from(receipt: Receipt<T>) -> ReceiptWithBloom<T>
fn from(receipt: Receipt<T>) -> ReceiptWithBloom<T>
Converts to this type from the input type.
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>) -> Receipt<T>
fn from(receipt_with_bloom: ReceiptWithBloom<T>) -> Receipt<T>
Consume the structure, returning only the receipt
source§impl<T> Serialize for Receipt<T>where
T: Serialize,
Available on crate feature serde
only.
impl<T> Serialize for Receipt<T>where
T: Serialize,
Available on crate feature
serde
only.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<T> TxReceipt<T> for Receipt<T>
impl<T> TxReceipt<T> for Receipt<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 cumulative_gas_used(&self) -> u128
fn cumulative_gas_used(&self) -> u128
Returns the cumulative gas used in the block after this transaction was executed.
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.
impl<T> Eq for Receipt<T>where
T: Eq,
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
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§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