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,
impl<T> Serialize for Receipt<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<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