pub enum ReceiptEnvelope<T = Log> {
Legacy(ReceiptWithBloom<Receipt<T>>),
Eip2930(ReceiptWithBloom<Receipt<T>>),
Eip1559(ReceiptWithBloom<Receipt<T>>),
Eip4844(ReceiptWithBloom<Receipt<T>>),
Eip7702(ReceiptWithBloom<Receipt<T>>),
}consensus only.Expand description
Receipt envelope, as defined in EIP-2718.
This enum distinguishes between tagged and untagged legacy receipts, as the
in-protocol Merkle tree may commit to EITHER 0-prefixed or raw. Therefore
we must ensure that encoding returns the precise byte-array that was
decoded, preserving the presence or absence of the TransactionType flag.
Transaction receipt payloads are specified in their respective EIPs.
Variants§
Legacy(ReceiptWithBloom<Receipt<T>>)
Receipt envelope with no type flag.
Eip2930(ReceiptWithBloom<Receipt<T>>)
Receipt envelope with type flag 1, containing a EIP-2930 receipt.
Eip1559(ReceiptWithBloom<Receipt<T>>)
Receipt envelope with type flag 2, containing a EIP-1559 receipt.
Eip4844(ReceiptWithBloom<Receipt<T>>)
Receipt envelope with type flag 3, containing a EIP-4844 receipt.
Eip7702(ReceiptWithBloom<Receipt<T>>)
Receipt envelope with type flag 4, containing a EIP-7702 receipt.
Implementations§
Source§impl<T> ReceiptEnvelope<T>
impl<T> ReceiptEnvelope<T>
Sourcepub fn from_typed<R>(tx_type: TxType, receipt: R) -> ReceiptEnvelope<T>
Available on crate features rpc and rpc-types only.
pub fn from_typed<R>(tx_type: TxType, receipt: R) -> ReceiptEnvelope<T>
rpc and rpc-types only.Creates the envelope for a given type and receipt.
Sourcepub fn map_logs<U>(self, f: impl FnMut(T) -> U) -> ReceiptEnvelope<U>
Available on crate features rpc and rpc-types only.
pub fn map_logs<U>(self, f: impl FnMut(T) -> U) -> ReceiptEnvelope<U>
rpc and rpc-types only.Converts the receipt’s log type by applying a function to each log.
Returns the receipt with the new log type.
Sourcepub fn into_primitives_receipt(self) -> ReceiptEnvelope
Available on crate features rpc and rpc-types only.
pub fn into_primitives_receipt(self) -> ReceiptEnvelope
rpc and rpc-types only.Converts a ReceiptEnvelope with a custom log type into a ReceiptEnvelope with the
primitives Log type by converting the logs.
This is useful if log types that embed the primitives log type, e.g. the log receipt rpc type.
Sourcepub const fn tx_type(&self) -> TxType
Available on crate features rpc and rpc-types only.
pub const fn tx_type(&self) -> TxType
rpc and rpc-types only.Return the TxType of the inner receipt.
Sourcepub const fn is_success(&self) -> bool
Available on crate features rpc and rpc-types only.
pub const fn is_success(&self) -> bool
rpc and rpc-types only.Return true if the transaction was successful.
Sourcepub const fn status(&self) -> bool
Available on crate features rpc and rpc-types only.
pub const fn status(&self) -> bool
rpc and rpc-types only.Returns the success status of the receipt’s transaction.
Sourcepub const fn cumulative_gas_used(&self) -> u64
Available on crate features rpc and rpc-types only.
pub const fn cumulative_gas_used(&self) -> u64
rpc and rpc-types only.Returns the cumulative gas used at this receipt.
Sourcepub fn logs(&self) -> &[T]
Available on crate features rpc and rpc-types only.
pub fn logs(&self) -> &[T]
rpc and rpc-types only.Return the receipt logs.
Sourcepub fn into_logs(self) -> Vec<T>
Available on crate features rpc and rpc-types only.
pub fn into_logs(self) -> Vec<T>
rpc and rpc-types only.Consumes the type and returns the logs.
Sourcepub const fn logs_bloom(&self) -> &Bloom
Available on crate features rpc and rpc-types only.
pub const fn logs_bloom(&self) -> &Bloom
rpc and rpc-types only.Return the receipt’s bloom.
Sourcepub const fn as_receipt_with_bloom(
&self,
) -> Option<&ReceiptWithBloom<Receipt<T>>>
Available on crate features rpc and rpc-types only.
pub const fn as_receipt_with_bloom( &self, ) -> Option<&ReceiptWithBloom<Receipt<T>>>
rpc and rpc-types only.Return the inner receipt with bloom. Currently this is infallible, however, future receipt types may be added.
Sourcepub const fn as_receipt_with_bloom_mut(
&mut self,
) -> Option<&mut ReceiptWithBloom<Receipt<T>>>
Available on crate features rpc and rpc-types only.
pub const fn as_receipt_with_bloom_mut( &mut self, ) -> Option<&mut ReceiptWithBloom<Receipt<T>>>
rpc and rpc-types only.Return the mutable inner receipt with bloom. Currently this is infallible, however, future receipt types may be added.
Sourcepub fn into_receipt(self) -> Receipt<T>
Available on crate features rpc and rpc-types only.
pub fn into_receipt(self) -> Receipt<T>
rpc and rpc-types only.Consumes the type and returns the underlying Receipt.
Sourcepub const fn as_receipt(&self) -> Option<&Receipt<T>>
Available on crate features rpc and rpc-types only.
pub const fn as_receipt(&self) -> Option<&Receipt<T>>
rpc and rpc-types only.Return the inner receipt. Currently this is infallible, however, future receipt types may be added.
Source§impl ReceiptEnvelope
impl ReceiptEnvelope
Sourcepub fn inner_length(&self) -> usize
Available on crate features rpc and rpc-types only.
pub fn inner_length(&self) -> usize
rpc and rpc-types only.Get the length of the inner receipt in the 2718 encoding.
Sourcepub fn rlp_payload_length(&self) -> usize
Available on crate features rpc and rpc-types only.
pub fn rlp_payload_length(&self) -> usize
rpc and rpc-types only.Calculate the length of the rlp payload of the network encoded receipt.
Trait Implementations§
Source§impl<'a, T> Arbitrary<'a> for ReceiptEnvelope<T>where
T: Arbitrary<'a>,
Available on crate features arbitrary only.
impl<'a, T> Arbitrary<'a> for ReceiptEnvelope<T>where
T: Arbitrary<'a>,
arbitrary only.Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<ReceiptEnvelope<T>, Error>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<ReceiptEnvelope<T>, Error>
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
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 AsRef<ReceiptEnvelope<Log>> for TransactionReceipt
impl AsRef<ReceiptEnvelope<Log>> for TransactionReceipt
Source§fn as_ref(&self) -> &ReceiptEnvelope<Log>
fn as_ref(&self) -> &ReceiptEnvelope<Log>
Source§impl<T> Clone for ReceiptEnvelope<T>where
T: Clone,
impl<T> Clone for ReceiptEnvelope<T>where
T: Clone,
Source§fn clone(&self) -> ReceiptEnvelope<T>
fn clone(&self) -> ReceiptEnvelope<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 for ReceiptEnvelope<T>where
T: Debug,
impl<T> Debug for ReceiptEnvelope<T>where
T: Debug,
Source§impl Decodable for ReceiptEnvelope
impl Decodable for ReceiptEnvelope
Source§impl Decodable2718 for ReceiptEnvelope
impl Decodable2718 for ReceiptEnvelope
Source§fn typed_decode(
ty: u8,
buf: &mut &[u8],
) -> Result<ReceiptEnvelope, Eip2718Error>
fn typed_decode( ty: u8, buf: &mut &[u8], ) -> Result<ReceiptEnvelope, Eip2718Error>
Source§fn fallback_decode(buf: &mut &[u8]) -> Result<ReceiptEnvelope, Eip2718Error>
fn fallback_decode(buf: &mut &[u8]) -> Result<ReceiptEnvelope, Eip2718Error>
Source§fn extract_type_byte(buf: &mut &[u8]) -> Option<u8>
fn extract_type_byte(buf: &mut &[u8]) -> Option<u8>
Source§fn decode_2718(buf: &mut &[u8]) -> Result<Self, Eip2718Error>
fn decode_2718(buf: &mut &[u8]) -> Result<Self, Eip2718Error>
Source§fn decode_2718_exact(bytes: &[u8]) -> Result<Self, Eip2718Error>
fn decode_2718_exact(bytes: &[u8]) -> Result<Self, Eip2718Error>
Source§fn network_decode(buf: &mut &[u8]) -> Result<Self, Eip2718Error>
fn network_decode(buf: &mut &[u8]) -> Result<Self, Eip2718Error>
Source§impl<'de, T> Deserialize<'de> for ReceiptEnvelope<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ReceiptEnvelope<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReceiptEnvelope<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReceiptEnvelope<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl<'de, T> DeserializeAs<'de, ReceiptEnvelope<T>> for ReceiptEnvelope<'de, T>where
T: Deserialize<'de> + Clone,
impl<'de, T> DeserializeAs<'de, ReceiptEnvelope<T>> for ReceiptEnvelope<'de, T>where
T: Deserialize<'de> + Clone,
Source§fn deserialize_as<D>(
deserializer: D,
) -> Result<ReceiptEnvelope<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize_as<D>(
deserializer: D,
) -> Result<ReceiptEnvelope<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl Encodable for ReceiptEnvelope
impl Encodable for ReceiptEnvelope
Source§impl Encodable2718 for ReceiptEnvelope
impl Encodable2718 for ReceiptEnvelope
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)
Source§fn encoded_2718(&self) -> Vec<u8> ⓘ
fn encoded_2718(&self) -> Vec<u8> ⓘ
Source§fn trie_hash(&self) -> FixedBytes<32>
fn trie_hash(&self) -> FixedBytes<32>
Source§fn into_encoded(self) -> WithEncoded<Self>
fn into_encoded(self) -> WithEncoded<Self>
WithEncoded wrapper. Read moreSource§fn network_len(&self) -> usize
fn network_len(&self) -> usize
Source§fn network_encode(&self, out: &mut dyn BufMut)
fn network_encode(&self, out: &mut dyn BufMut)
Source§impl<'a, T> From<&'a ReceiptEnvelope<T>> for ReceiptEnvelope<'a, T>where
T: Clone,
impl<'a, T> From<&'a ReceiptEnvelope<T>> for ReceiptEnvelope<'a, T>where
T: Clone,
Source§fn from(value: &'a ReceiptEnvelope<T>) -> ReceiptEnvelope<'a, T>
fn from(value: &'a ReceiptEnvelope<T>) -> ReceiptEnvelope<'a, T>
Source§impl<'a, T> From<ReceiptEnvelope<'a, T>> for ReceiptEnvelope<T>where
T: Clone,
impl<'a, T> From<ReceiptEnvelope<'a, T>> for ReceiptEnvelope<T>where
T: Clone,
Source§fn from(value: ReceiptEnvelope<'a, T>) -> ReceiptEnvelope<T>
fn from(value: ReceiptEnvelope<'a, T>) -> ReceiptEnvelope<T>
Source§impl IsTyped2718 for ReceiptEnvelope
impl IsTyped2718 for ReceiptEnvelope
Source§impl<T> PartialEq for ReceiptEnvelope<T>where
T: PartialEq,
impl<T> PartialEq for ReceiptEnvelope<T>where
T: PartialEq,
Source§impl<T> Serialize for ReceiptEnvelope<T>where
T: Serialize,
impl<T> Serialize for ReceiptEnvelope<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,
Source§impl<T> SerializeAs<ReceiptEnvelope<T>> for ReceiptEnvelope<'_, T>
impl<T> SerializeAs<ReceiptEnvelope<T>> for ReceiptEnvelope<'_, T>
Source§fn serialize_as<S>(
source: &ReceiptEnvelope<T>,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize_as<S>(
source: &ReceiptEnvelope<T>,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Source§impl<T> TxReceipt for ReceiptEnvelope<T>
impl<T> TxReceipt for ReceiptEnvelope<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>
Source§fn into_logs(self) -> Vec<<ReceiptEnvelope<T> as TxReceipt>::Log>
fn into_logs(self) -> Vec<<ReceiptEnvelope<T> as TxReceipt>::Log>
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.Source§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 ReceiptEnvelope
impl Typed2718 for ReceiptEnvelope
Source§fn is_eip2930(&self) -> bool
fn is_eip2930(&self) -> bool
Source§fn is_eip1559(&self) -> bool
fn is_eip1559(&self) -> bool
Source§fn is_eip4844(&self) -> bool
fn is_eip4844(&self) -> bool
Source§fn is_eip7702(&self) -> bool
fn is_eip7702(&self) -> bool
impl<T> Eq for ReceiptEnvelope<T>where
T: Eq,
impl<T> StructuralPartialEq for ReceiptEnvelope<T>
Auto Trait Implementations§
impl<T> Freeze for ReceiptEnvelope<T>
impl<T> RefUnwindSafe for ReceiptEnvelope<T>where
T: RefUnwindSafe,
impl<T> Send for ReceiptEnvelope<T>where
T: Send,
impl<T> Sync for ReceiptEnvelope<T>where
T: Sync,
impl<T> Unpin for ReceiptEnvelope<T>where
T: Unpin,
impl<T> UnwindSafe for ReceiptEnvelope<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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§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 moreSource§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 moreSource§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
Source§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
Source§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.Source§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.Source§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.Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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<'de, T> BorrowedRpcObject<'de> for T
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 T
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: 336 bytes
Size for each variant:
Legacy: 328 bytesEip2930: 328 bytesEip1559: 328 bytesEip4844: 328 bytesEip7702: 328 bytes