pub enum FoundryReceiptEnvelope<T = Log> {
Legacy(ReceiptWithBloom<Receipt<T>>),
Eip2930(ReceiptWithBloom<Receipt<T>>),
Eip1559(ReceiptWithBloom<Receipt<T>>),
Eip4844(ReceiptWithBloom<Receipt<T>>),
Eip7702(ReceiptWithBloom<Receipt<T>>),
Deposit(OpDepositReceiptWithBloom<T>),
}Variants§
Legacy(ReceiptWithBloom<Receipt<T>>)
Eip2930(ReceiptWithBloom<Receipt<T>>)
Eip1559(ReceiptWithBloom<Receipt<T>>)
Eip4844(ReceiptWithBloom<Receipt<T>>)
Eip7702(ReceiptWithBloom<Receipt<T>>)
Deposit(OpDepositReceiptWithBloom<T>)
Implementations§
Source§impl FoundryReceiptEnvelope<Log>
impl FoundryReceiptEnvelope<Log>
Sourcepub fn from_parts<'a>(
status: bool,
cumulative_gas_used: u64,
logs: impl IntoIterator<Item = &'a Log>,
tx_type: FoundryTxType,
deposit_nonce: Option<u64>,
deposit_receipt_version: Option<u64>,
) -> Self
pub fn from_parts<'a>( status: bool, cumulative_gas_used: u64, logs: impl IntoIterator<Item = &'a Log>, tx_type: FoundryTxType, deposit_nonce: Option<u64>, deposit_receipt_version: Option<u64>, ) -> Self
Creates a new FoundryReceiptEnvelope from the given parts.
Source§impl<T> FoundryReceiptEnvelope<T>
impl<T> FoundryReceiptEnvelope<T>
Sourcepub const fn tx_type(&self) -> FoundryTxType
pub const fn tx_type(&self) -> FoundryTxType
Return the FoundryTxType of the inner receipt.
Sourcepub const fn is_success(&self) -> bool
pub const fn is_success(&self) -> bool
Return true if the transaction was successful.
Sourcepub const fn cumulative_gas_used(&self) -> u64
pub const fn cumulative_gas_used(&self) -> u64
Returns the cumulative gas used at this receipt.
Sourcepub fn map_logs<U>(self, f: impl FnMut(T) -> U) -> FoundryReceiptEnvelope<U>
pub fn map_logs<U>(self, f: impl FnMut(T) -> U) -> FoundryReceiptEnvelope<U>
Converts the receipt’s log type by applying a function to each log.
Returns the receipt with the new log type.
Sourcepub const fn logs_bloom(&self) -> &Bloom
pub const fn logs_bloom(&self) -> &Bloom
Return the receipt’s bloom.
Sourcepub fn deposit_nonce(&self) -> Option<u64>
pub fn deposit_nonce(&self) -> Option<u64>
Return the receipt’s deposit_nonce if it is a deposit receipt.
Sourcepub fn deposit_receipt_version(&self) -> Option<u64>
pub fn deposit_receipt_version(&self) -> Option<u64>
Return the receipt’s deposit version if it is a deposit receipt.
Sourcepub const fn as_deposit_receipt_with_bloom(
&self,
) -> Option<&OpDepositReceiptWithBloom<T>>
pub const fn as_deposit_receipt_with_bloom( &self, ) -> Option<&OpDepositReceiptWithBloom<T>>
Returns the deposit receipt if it is a deposit receipt.
Sourcepub const fn as_deposit_receipt(&self) -> Option<&OpDepositReceipt<T>>
pub const fn as_deposit_receipt(&self) -> Option<&OpDepositReceipt<T>>
Returns the deposit receipt if it is a deposit receipt.
Sourcepub fn into_receipt(self) -> Receipt<T>
pub fn into_receipt(self) -> Receipt<T>
Consumes the type and returns the underlying [Receipt].
Sourcepub const fn as_receipt(&self) -> &Receipt<T>
pub const fn as_receipt(&self) -> &Receipt<T>
Return the inner receipt.
Source§impl FoundryReceiptEnvelope
impl FoundryReceiptEnvelope
Sourcepub fn inner_length(&self) -> usize
pub fn inner_length(&self) -> usize
Get the length of the inner receipt in the 2718 encoding.
Sourcepub fn rlp_payload_length(&self) -> usize
pub fn rlp_payload_length(&self) -> usize
Calculate the length of the rlp payload of the network encoded receipt.
Trait Implementations§
Source§impl<T: Clone> Clone for FoundryReceiptEnvelope<T>
impl<T: Clone> Clone for FoundryReceiptEnvelope<T>
Source§fn clone(&self) -> FoundryReceiptEnvelope<T>
fn clone(&self) -> FoundryReceiptEnvelope<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 FoundryReceiptEnvelope<T>
impl<T: Debug> Debug for FoundryReceiptEnvelope<T>
Source§impl Decodable for FoundryReceiptEnvelope
impl Decodable for FoundryReceiptEnvelope
Source§impl Decodable2718 for FoundryReceiptEnvelope
impl Decodable2718 for FoundryReceiptEnvelope
Source§fn typed_decode(ty: u8, buf: &mut &[u8]) -> Result<Self, Eip2718Error>
fn typed_decode(ty: u8, buf: &mut &[u8]) -> Result<Self, Eip2718Error>
Source§fn fallback_decode(buf: &mut &[u8]) -> Result<Self, Eip2718Error>
fn fallback_decode(buf: &mut &[u8]) -> Result<Self, Eip2718Error>
§fn extract_type_byte(buf: &mut &[u8]) -> Option<u8>
fn extract_type_byte(buf: &mut &[u8]) -> Option<u8>
§fn decode_2718(buf: &mut &[u8]) -> Result<Self, Eip2718Error>
fn decode_2718(buf: &mut &[u8]) -> Result<Self, Eip2718Error>
§fn decode_2718_exact(bytes: &[u8]) -> Result<Self, Eip2718Error>
fn decode_2718_exact(bytes: &[u8]) -> Result<Self, Eip2718Error>
Source§impl<'de, T> Deserialize<'de> for FoundryReceiptEnvelope<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for FoundryReceiptEnvelope<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 Encodable for FoundryReceiptEnvelope
impl Encodable for FoundryReceiptEnvelope
Source§impl Encodable2718 for FoundryReceiptEnvelope
impl Encodable2718 for FoundryReceiptEnvelope
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)
§fn encoded_2718(&self) -> Vec<u8> ⓘ
fn encoded_2718(&self) -> Vec<u8> ⓘ
§fn trie_hash(&self) -> FixedBytes<32>
fn trie_hash(&self) -> FixedBytes<32>
§fn into_encoded(self) -> WithEncoded<Self>
fn into_encoded(self) -> WithEncoded<Self>
WithEncoded] wrapper. Read more§fn network_len(&self) -> usize
fn network_len(&self) -> usize
§fn network_encode(&self, out: &mut dyn BufMut)
fn network_encode(&self, out: &mut dyn BufMut)
Source§impl<T: PartialEq> PartialEq for FoundryReceiptEnvelope<T>
impl<T: PartialEq> PartialEq for FoundryReceiptEnvelope<T>
Source§impl<T> Serialize for FoundryReceiptEnvelope<T>where
T: Serialize,
impl<T> Serialize for FoundryReceiptEnvelope<T>where
T: Serialize,
Source§impl<T> TxReceipt for FoundryReceiptEnvelope<T>
impl<T> TxReceipt for FoundryReceiptEnvelope<T>
Source§fn cumulative_gas_used(&self) -> u64
fn cumulative_gas_used(&self) -> u64
Returns the cumulative gas used at this receipt.
Source§fn status_or_post_state(&self) -> Eip658Value
fn status_or_post_state(&self) -> Eip658Value
Source§fn bloom_cheap(&self) -> Option<Bloom>
fn bloom_cheap(&self) -> Option<Bloom>
§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.§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.§fn into_with_bloom_unchecked(self, logs_bloom: Bloom) -> ReceiptWithBloom<Self>
fn into_with_bloom_unchecked(self, logs_bloom: Bloom) -> ReceiptWithBloom<Self>
ReceiptWithBloom] with the given bloom filter.Source§impl Typed2718 for FoundryReceiptEnvelope
impl Typed2718 for FoundryReceiptEnvelope
§fn is_eip2930(&self) -> bool
fn is_eip2930(&self) -> bool
§fn is_eip1559(&self) -> bool
fn is_eip1559(&self) -> bool
§fn is_eip4844(&self) -> bool
fn is_eip4844(&self) -> bool
§fn is_eip7702(&self) -> bool
fn is_eip7702(&self) -> bool
impl<T: Eq> Eq for FoundryReceiptEnvelope<T>
impl<T> StructuralPartialEq for FoundryReceiptEnvelope<T>
Auto Trait Implementations§
impl<T> Freeze for FoundryReceiptEnvelope<T>
impl<T> RefUnwindSafe for FoundryReceiptEnvelope<T>where
T: RefUnwindSafe,
impl<T> Send for FoundryReceiptEnvelope<T>where
T: Send,
impl<T> Sync for FoundryReceiptEnvelope<T>where
T: Sync,
impl<T> Unpin for FoundryReceiptEnvelope<T>where
T: Unpin,
impl<T> UnwindSafe for FoundryReceiptEnvelope<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,
§impl<T> Conv for T
impl<T> Conv for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<TxEnv, T> FromRecoveredTx<&T> for TxEnvwhere
TxEnv: FromRecoveredTx<T>,
impl<TxEnv, T> FromRecoveredTx<&T> for TxEnvwhere
TxEnv: FromRecoveredTx<T>,
§fn from_recovered_tx(tx: &&T, sender: Address) -> TxEnv
fn from_recovered_tx(tx: &&T, sender: Address) -> TxEnv
TxEnv] from a transaction and a sender address.§impl<TxEnv, T> FromTxWithEncoded<&T> for TxEnvwhere
TxEnv: FromTxWithEncoded<T>,
impl<TxEnv, T> FromTxWithEncoded<&T> for TxEnvwhere
TxEnv: FromTxWithEncoded<T>,
§fn from_encoded_tx(tx: &&T, sender: Address, encoded: Bytes) -> TxEnv
fn from_encoded_tx(tx: &&T, sender: Address, encoded: Bytes) -> TxEnv
TxEnv] from a transaction, its sender, and encoded transaction bytes.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.§impl<T> TryConv for T
impl<T> TryConv for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<'de, T> BorrowedRpcObject<'de> for Twhere
T: RpcBorrow<'de> + RpcSend,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Eip2718Envelope for Twhere
T: Decodable2718 + Encodable2718,
impl<'de, T> RpcBorrow<'de> for T
impl<T> RpcObject for Twhere
T: RpcSend + RpcRecv,
impl<T> RpcRecv for T
impl<T> RpcSend for T
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: 360 bytes
Size for each variant:
Legacy: 336 bytesEip2930: 336 bytesEip1559: 336 bytesEip4844: 336 bytesEip7702: 336 bytesDeposit: 360 bytes