Type Alias PooledTransactionsElementEcRecovered

Source
pub type PooledTransactionsElementEcRecovered<T = PooledTransaction> = Recovered<T>;
👎Deprecated: use Recovered instead
Expand description

A signed pooled transaction with recovered signer.

Aliased Type§

struct PooledTransactionsElementEcRecovered<T = PooledTransaction> { /* private fields */ }

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.

Implementations

§

impl<T> Recovered<&T>

pub fn cloned(self) -> Recovered<T>
where T: Clone,

Maps a Recovered<&T> to a Recovered<T> by cloning the transaction.

§

impl<T> Recovered<T>

pub const fn signer(&self) -> Address

Signer of the object recovered from signature

pub const fn signer_ref(&self) -> &Address

Reference to the signer of the object recovered from signature

pub const fn inner(&self) -> &T

Reference to the inner recovered object.

pub fn inner_mut(&mut self) -> &mut T

Reference to the inner recovered object.

pub fn into_inner(self) -> T

Reference to the inner signed object.

pub fn clone_inner(&self) -> T
where T: Clone,

Clone the inner signed object.

pub const fn tx(&self) -> &T

👎Deprecated: Use inner instead

Returns a reference to the transaction.

pub fn into_tx(self) -> T

👎Deprecated: Use into_inner instead

Transform back to the transaction.

pub fn clone_tx(&self) -> T
where T: Clone,

👎Deprecated: Use clone_inner instead

Clone the inner transaction.

pub fn into_parts(self) -> (T, Address)

Dissolve Self to its component

pub const fn as_recovered_ref(&self) -> Recovered<&T>

Converts from &Recovered<T> to Recovered<&T>.

pub const fn new_unchecked(inner: T, signer: Address) -> Recovered<T>

Create Recovered from the given transaction and [Address] of the signer.

Note: This does not check if the signer is the actual signer of the transaction.

pub fn convert<Tx>(self) -> Recovered<Tx>
where Tx: From<T>,

Converts the inner signed object to the given alternative that is From<T>

pub fn convert_transaction<Tx>(self) -> Recovered<Tx>
where Tx: From<T>,

👎Deprecated: Use convert_inner instead

Converts the transaction type to the given alternative that is From<T>

pub fn try_convert<Tx, E>( self, ) -> Result<Recovered<Tx>, <Tx as TryFrom<T>>::Error>
where Tx: TryFrom<T>,

Converts the inner signed object to the given alternative that is TryFrom<T>

pub fn try_convert_transaction<Tx, E>( self, ) -> Result<Recovered<Tx>, <Tx as TryFrom<T>>::Error>
where Tx: TryFrom<T>,

👎Deprecated: Use try_convert_inner instead

Converts the transaction to the given alternative that is TryFrom<T>

pub fn map<Tx>(self, f: impl FnOnce(T) -> Tx) -> Recovered<Tx>

Applies the given closure to the inner signed object.

pub fn map_transaction<Tx>(self, f: impl FnOnce(T) -> Tx) -> Recovered<Tx>

👎Deprecated: Use map_inner instead

Applies the given closure to the inner transaction type.

pub fn try_map<Tx, E>( self, f: impl FnOnce(T) -> Result<Tx, E>, ) -> Result<Recovered<Tx>, E>

Applies the given fallible closure to the inner signed object.

pub fn try_map_transaction<Tx, E>( self, f: impl FnOnce(T) -> Result<Tx, E>, ) -> Result<Recovered<Tx>, E>

👎Deprecated: Use try_map_inner instead

Applies the given fallible closure to the inner transaction type.

Trait Implementations

§

impl<'arbitrary, T> Arbitrary<'arbitrary> for Recovered<T>
where T: Arbitrary<'arbitrary>,

§

fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Recovered<T>, Error>

Generate an arbitrary value of Self from the given unstructured data. Read more
§

fn arbitrary_take_rest( u: Unstructured<'arbitrary>, ) -> Result<Recovered<T>, Error>

Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more
§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
§

fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
§

impl<T> AsRef<T> for Recovered<T>

§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
§

impl<T> Clone for Recovered<T>
where T: Clone,

§

fn clone(&self) -> Recovered<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<T> Debug for Recovered<T>
where T: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> Decodable for Recovered<T>
where T: Decodable + SignerRecoverable,

§

fn decode(buf: &mut &[u8]) -> Result<Recovered<T>, Error>

Decodes the blob into the appropriate type. buf must be advanced past the decoded object.
§

impl<T> Deref for Recovered<T>

§

type Target = T

The resulting type after dereferencing.
§

fn deref(&self) -> &<Recovered<T> as Deref>::Target

Dereferences the value.
§

impl<T> Encodable for Recovered<T>
where T: Encodable,

§

fn encode(&self, out: &mut dyn BufMut)

This encodes the transaction with the signature, and an rlp header.

§

fn length(&self) -> usize

Returns the length of the encoding of this type in bytes. Read more
§

impl<T> Encodable2718 for Recovered<T>
where T: Encodable2718,

§

fn encode_2718_len(&self) -> usize

The length of the 2718 encoded envelope. This is the length of the type flag + the length of the inner encoding.
§

fn encode_2718(&self, out: &mut dyn BufMut)

Encode the transaction according to EIP-2718 rules. First a 1-byte type flag in the range 0x0-0x7f, then the body of the transaction. Read more
§

fn trie_hash(&self) -> FixedBytes<32>

Compute the hash as committed to in the MPT trie. This hash is used ONLY by the Ethereum merkle-patricia trie and associated proofs. Do not call this method unless you are building a full or light client. Read more
§

fn type_flag(&self) -> Option<u8>

Return the type flag (if any). Read more
§

fn encoded_2718(&self) -> Vec<u8>

Encode the transaction according to [EIP-2718] rules. First a 1-byte type flag in the range 0x0-0x7f, then the body of the transaction. Read more
§

fn seal(self) -> Sealed<Self>

Seal the encodable, by encoding and hashing it.
§

fn network_len(&self) -> usize

The length of the 2718 encoded envelope in network format. This is the length of the header + the length of the type flag and inner encoding.
§

fn network_encode(&self, out: &mut dyn BufMut)

Encode in the network format. The network format is used ONLY by the Ethereum p2p protocol. Do not call this method unless you are building a p2p protocol client. Read more
§

impl From<AnyRpcTransaction> for Recovered<AnyTxEnvelope>

§

fn from(tx: AnyRpcTransaction) -> Recovered<AnyTxEnvelope>

Converts to this type from the input type.
§

impl<T> From<Transaction<T>> for Recovered<T>

§

fn from(tx: Transaction<T>) -> Recovered<T>

Converts to this type from the input type.
§

impl<T> Hash for Recovered<T>
where T: Hash,

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl<T, TxEnv> IntoTxEnv<TxEnv> for Recovered<T>
where TxEnv: FromRecoveredTx<T>,

§

fn into_tx_env(self) -> TxEnv

Converts self into [TxEnv].
§

impl<T> PartialEq for Recovered<T>
where T: PartialEq,

§

fn eq(&self, other: &Recovered<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<T> Typed2718 for Recovered<T>
where T: Typed2718,

§

fn ty(&self) -> u8

Returns the EIP-2718 type flag.
§

fn is_type(&self, ty: u8) -> bool

Returns true if the type matches the given type.
§

fn is_legacy(&self) -> bool

Returns true if the type is a legacy transaction.
§

fn is_eip2930(&self) -> bool

Returns true if the type is an EIP-2930 transaction.
§

fn is_eip1559(&self) -> bool

Returns true if the type is an EIP-1559 transaction.
§

fn is_eip4844(&self) -> bool

Returns true if the type is an EIP-4844 transaction.
§

fn is_eip7702(&self) -> bool

Returns true if the type is an EIP-7702 transaction.
§

impl<T> Copy for Recovered<T>
where T: Copy,

§

impl<T> Eq for Recovered<T>
where T: Eq,

§

impl<T> StructuralPartialEq for Recovered<T>