pub enum AnyTxEnvelope {
Ethereum(EthereumTxEnvelope<TxEip4844Variant>),
Unknown(UnknownTxEnvelope),
}network only.Expand description
Transaction envelope for a catch-all network.
Variants§
Ethereum(EthereumTxEnvelope<TxEip4844Variant>)
An Ethereum transaction.
Unknown(UnknownTxEnvelope)
A transaction with unknown type.
Implementations§
Source§impl AnyTxEnvelope
impl AnyTxEnvelope
Sourcepub const fn is_ethereum(&self) -> bool
Available on crate feature providers only.
pub const fn is_ethereum(&self) -> bool
providers only.Returns true if this is the ethereum transaction variant
Sourcepub const fn is_unknown(&self) -> bool
Available on crate feature providers only.
pub const fn is_unknown(&self) -> bool
providers only.Returns true if this is the unknown transaction variant
Sourcepub const fn as_envelope(&self) -> Option<&EthereumTxEnvelope<TxEip4844Variant>>
Available on crate feature providers only.
pub const fn as_envelope(&self) -> Option<&EthereumTxEnvelope<TxEip4844Variant>>
providers only.Returns the inner Ethereum transaction envelope, if it is an Ethereum transaction.
Sourcepub const fn as_unknown(&self) -> Option<&UnknownTxEnvelope>
Available on crate feature providers only.
pub const fn as_unknown(&self) -> Option<&UnknownTxEnvelope>
providers only.Returns the inner UnknownTxEnvelope if it is an unknown variant.
Sourcepub fn try_into_envelope(
self,
) -> Result<EthereumTxEnvelope<TxEip4844Variant>, ValueError<AnyTxEnvelope>>
Available on crate feature providers only.
pub fn try_into_envelope( self, ) -> Result<EthereumTxEnvelope<TxEip4844Variant>, ValueError<AnyTxEnvelope>>
providers only.Returns the inner Ethereum transaction envelope, if it is an Ethereum transaction. If the transaction is not an Ethereum transaction, it is returned as an error.
Sourcepub fn try_into_unknown(self) -> Result<UnknownTxEnvelope, AnyTxEnvelope>
Available on crate feature providers only.
pub fn try_into_unknown(self) -> Result<UnknownTxEnvelope, AnyTxEnvelope>
providers only.Returns the inner UnknownTxEnvelope, if it is an unknown transaction.
If the transaction is not an unknown transaction, it is returned as an error.
Sourcepub fn try_into_either<T>(
self,
) -> Result<Either<EthereumTxEnvelope<TxEip4844Variant>, T>, <T as TryFrom<UnknownTxEnvelope>>::Error>where
T: TryFrom<UnknownTxEnvelope>,
Available on crate feature providers only.
pub fn try_into_either<T>(
self,
) -> Result<Either<EthereumTxEnvelope<TxEip4844Variant>, T>, <T as TryFrom<UnknownTxEnvelope>>::Error>where
T: TryFrom<UnknownTxEnvelope>,
providers only.Attempts to convert the UnknownTxEnvelope into Either::Right if this is an unknown
variant.
Returns Either::Left with the ethereum TxEnvelope if this is the
AnyTxEnvelope::Ethereum variant and Either::Right with the converted variant.
§Examples
match envelope.try_into_either::<CustomTx>()? {
Either::Left(eth_tx) => { /* Ethereum transaction */ }
Either::Right(custom_tx) => { /* Custom transaction */ }
}Sourcepub fn try_map_unknown<T, E>(
self,
f: impl FnOnce(UnknownTxEnvelope) -> Result<T, E>,
) -> Result<Either<EthereumTxEnvelope<TxEip4844Variant>, T>, E>
Available on crate feature providers only.
pub fn try_map_unknown<T, E>( self, f: impl FnOnce(UnknownTxEnvelope) -> Result<T, E>, ) -> Result<Either<EthereumTxEnvelope<TxEip4844Variant>, T>, E>
providers only.Attempts to convert the UnknownTxEnvelope into Either::Right if this is an
AnyTxEnvelope::Unknown.
Returns Either::Left with the ethereum TxEnvelope if this is the
AnyTxEnvelope::Ethereum variant and Either::Right with the converted variant.
Use this for custom conversion logic when try_into_either is
insufficient.
§Examples
let result = envelope.try_map_unknown(|unknown| Ok::<B256, String>(unknown.hash))?;
match result {
Either::Left(eth_tx) => { /* Ethereum */ }
Either::Right(hash) => { /* Unknown tx hash */ }
}Sourcepub const fn as_legacy(&self) -> Option<&Signed<TxLegacy>>
Available on crate feature providers only.
pub const fn as_legacy(&self) -> Option<&Signed<TxLegacy>>
providers only.Returns the TxLegacy variant if the transaction is a legacy transaction.
Sourcepub const fn as_eip2930(&self) -> Option<&Signed<TxEip2930>>
Available on crate feature providers only.
pub const fn as_eip2930(&self) -> Option<&Signed<TxEip2930>>
providers only.Returns the TxEip2930 variant if the transaction is an EIP-2930 transaction.
Sourcepub const fn as_eip1559(&self) -> Option<&Signed<TxEip1559>>
Available on crate feature providers only.
pub const fn as_eip1559(&self) -> Option<&Signed<TxEip1559>>
providers only.Returns the TxEip1559 variant if the transaction is an EIP-1559 transaction.
Sourcepub const fn as_eip4844(&self) -> Option<&Signed<TxEip4844Variant>>
Available on crate feature providers only.
pub const fn as_eip4844(&self) -> Option<&Signed<TxEip4844Variant>>
providers only.Returns the TxEip4844Variant variant if the transaction is an EIP-4844 transaction.
Sourcepub const fn as_eip7702(&self) -> Option<&Signed<TxEip7702>>
Available on crate feature providers only.
pub const fn as_eip7702(&self) -> Option<&Signed<TxEip7702>>
providers only.Returns the TxEip7702 variant if the transaction is an EIP-7702 transaction.
Sourcepub const fn is_legacy(&self) -> bool
Available on crate feature providers only.
pub const fn is_legacy(&self) -> bool
providers only.Returns true if the transaction is a legacy transaction.
Sourcepub const fn is_eip2930(&self) -> bool
Available on crate feature providers only.
pub const fn is_eip2930(&self) -> bool
providers only.Returns true if the transaction is an EIP-2930 transaction.
Sourcepub const fn is_eip1559(&self) -> bool
Available on crate feature providers only.
pub const fn is_eip1559(&self) -> bool
providers only.Returns true if the transaction is an EIP-1559 transaction.
Sourcepub const fn is_eip4844(&self) -> bool
Available on crate feature providers only.
pub const fn is_eip4844(&self) -> bool
providers only.Returns true if the transaction is an EIP-4844 transaction.
Sourcepub const fn is_eip7702(&self) -> bool
Available on crate feature providers only.
pub const fn is_eip7702(&self) -> bool
providers only.Returns true if the transaction is an EIP-7702 transaction.
Trait Implementations§
Source§impl AsRef<AnyTxEnvelope> for AnyRpcTransaction
impl AsRef<AnyTxEnvelope> for AnyRpcTransaction
Source§fn as_ref(&self) -> &AnyTxEnvelope
fn as_ref(&self) -> &AnyTxEnvelope
Source§impl Clone for AnyTxEnvelope
impl Clone for AnyTxEnvelope
Source§fn clone(&self) -> AnyTxEnvelope
fn clone(&self) -> AnyTxEnvelope
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AnyTxEnvelope
impl Debug for AnyTxEnvelope
Source§impl Decodable2718 for AnyTxEnvelope
impl Decodable2718 for AnyTxEnvelope
Source§fn typed_decode(ty: u8, buf: &mut &[u8]) -> Result<AnyTxEnvelope, Eip2718Error>
fn typed_decode(ty: u8, buf: &mut &[u8]) -> Result<AnyTxEnvelope, Eip2718Error>
Source§fn fallback_decode(buf: &mut &[u8]) -> Result<AnyTxEnvelope, Eip2718Error>
fn fallback_decode(buf: &mut &[u8]) -> Result<AnyTxEnvelope, 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> Deserialize<'de> for AnyTxEnvelope
impl<'de> Deserialize<'de> for AnyTxEnvelope
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnyTxEnvelope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnyTxEnvelope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Encodable2718 for AnyTxEnvelope
impl Encodable2718 for AnyTxEnvelope
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 trie_hash(&self) -> FixedBytes<32>
fn trie_hash(&self) -> FixedBytes<32>
Source§fn encoded_2718(&self) -> Vec<u8> ⓘ
fn encoded_2718(&self) -> Vec<u8> ⓘ
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 From<AnyRpcTransaction> for AnyTxEnvelope
impl From<AnyRpcTransaction> for AnyTxEnvelope
Source§fn from(tx: AnyRpcTransaction) -> AnyTxEnvelope
fn from(tx: AnyRpcTransaction) -> AnyTxEnvelope
Source§impl From<AnyTxEnvelope> for AnyTypedTransaction
impl From<AnyTxEnvelope> for AnyTypedTransaction
Source§fn from(value: AnyTxEnvelope) -> AnyTypedTransaction
fn from(value: AnyTxEnvelope) -> AnyTypedTransaction
Source§impl From<AnyTxEnvelope> for WithOtherFields<TransactionRequest>
impl From<AnyTxEnvelope> for WithOtherFields<TransactionRequest>
Source§fn from(value: AnyTxEnvelope) -> WithOtherFields<TransactionRequest>
fn from(value: AnyTxEnvelope) -> WithOtherFields<TransactionRequest>
Source§impl From<Signed<AnyTypedTransaction>> for AnyTxEnvelope
impl From<Signed<AnyTypedTransaction>> for AnyTxEnvelope
Source§fn from(value: Signed<AnyTypedTransaction>) -> AnyTxEnvelope
fn from(value: Signed<AnyTypedTransaction>) -> AnyTxEnvelope
Source§impl PartialEq for AnyTxEnvelope
impl PartialEq for AnyTxEnvelope
Source§impl Serialize for AnyTxEnvelope
impl Serialize for AnyTxEnvelope
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 Transaction for AnyTxEnvelope
impl Transaction for AnyTxEnvelope
Source§fn max_fee_per_gas(&self) -> u128
fn max_fee_per_gas(&self) -> u128
Source§fn max_priority_fee_per_gas(&self) -> Option<u128>
fn max_priority_fee_per_gas(&self) -> Option<u128>
Source§fn max_fee_per_blob_gas(&self) -> Option<u128>
fn max_fee_per_blob_gas(&self) -> Option<u128>
Source§fn priority_fee_or_price(&self) -> u128
fn priority_fee_or_price(&self) -> u128
Source§fn effective_gas_price(&self, base_fee: Option<u64>) -> u128
fn effective_gas_price(&self, base_fee: Option<u64>) -> u128
Source§fn is_dynamic_fee(&self) -> bool
fn is_dynamic_fee(&self) -> bool
true if the transaction supports dynamic fees.Source§fn is_create(&self) -> bool
fn is_create(&self) -> bool
kind as it copies the 21-byte
TxKind for this simple check. A proper implementation shouldn’t allocate.Source§fn access_list(&self) -> Option<&AccessList>
fn access_list(&self) -> Option<&AccessList>
access_list for the particular transaction type. Returns None for
older transaction types.Source§fn blob_versioned_hashes(&self) -> Option<&[FixedBytes<32>]>
fn blob_versioned_hashes(&self) -> Option<&[FixedBytes<32>]>
None.SignedAuthorization list of the transaction. Read moreSource§fn effective_tip_per_gas(&self, base_fee: u64) -> Option<u128>
fn effective_tip_per_gas(&self, base_fee: u64) -> Option<u128>
Source§fn to(&self) -> Option<Address>
fn to(&self) -> Option<Address>
Source§fn function_selector(&self) -> Option<&FixedBytes<4>>
fn function_selector(&self) -> Option<&FixedBytes<4>>
Source§fn blob_count(&self) -> Option<u64>
fn blob_count(&self) -> Option<u64>
Source§fn blob_gas_used(&self) -> Option<u64>
fn blob_gas_used(&self) -> Option<u64>
SignedAuthorizations in this transactions Read moreSource§impl Typed2718 for AnyTxEnvelope
impl Typed2718 for AnyTxEnvelope
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 Eq for AnyTxEnvelope
impl StructuralPartialEq for AnyTxEnvelope
Auto Trait Implementations§
impl !Freeze for AnyTxEnvelope
impl RefUnwindSafe for AnyTxEnvelope
impl Send for AnyTxEnvelope
impl Sync for AnyTxEnvelope
impl Unpin for AnyTxEnvelope
impl UnsafeUnpin for AnyTxEnvelope
impl UnwindSafe for AnyTxEnvelope
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: 400 bytes
Size for each variant:
Ethereum: 400 bytesUnknown: 208 bytes