pub type PooledTransactionsElementEcRecovered<T = PooledTransaction> = Recovered<T>;
Recovered
insteadExpand 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>
impl<T> Recovered<T>
pub const fn signer(&self) -> Address
pub const fn signer(&self) -> Address
Signer of the object recovered from signature
pub const fn signer_ref(&self) -> &Address
pub const fn signer_ref(&self) -> &Address
Reference to the signer of the object recovered from signature
pub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Reference to the inner signed object.
pub fn clone_inner(&self) -> Twhere
T: Clone,
pub fn clone_inner(&self) -> Twhere
T: Clone,
Clone the inner signed object.
pub fn into_tx(self) -> T
👎Deprecated: Use into_inner
instead
pub fn into_tx(self) -> T
into_inner
insteadTransform back to the transaction.
pub fn clone_tx(&self) -> Twhere
T: Clone,
👎Deprecated: Use clone_inner
instead
pub fn clone_tx(&self) -> Twhere
T: Clone,
clone_inner
insteadClone the inner transaction.
pub fn into_parts(self) -> (T, Address)
pub fn into_parts(self) -> (T, Address)
Dissolve Self to its component
pub const fn as_recovered_ref(&self) -> Recovered<&T>
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>
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>,
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
pub fn convert_transaction<Tx>(self) -> Recovered<Tx>where
Tx: From<T>,
convert_inner
insteadConverts 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>,
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
pub fn try_convert_transaction<Tx, E>(
self,
) -> Result<Recovered<Tx>, <Tx as TryFrom<T>>::Error>where
Tx: TryFrom<T>,
try_convert_inner
insteadConverts the transaction to the given alternative that is TryFrom<T>
pub fn map<Tx>(self, f: impl FnOnce(T) -> Tx) -> Recovered<Tx>
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
pub fn map_transaction<Tx>(self, f: impl FnOnce(T) -> Tx) -> Recovered<Tx>
map_inner
insteadApplies 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>
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
pub fn try_map_transaction<Tx, E>( self, f: impl FnOnce(T) -> Result<Tx, E>, ) -> Result<Recovered<Tx>, E>
try_map_inner
insteadApplies the given fallible closure to the inner transaction type.
Trait Implementations
§impl<'arbitrary, T> Arbitrary<'arbitrary> for Recovered<T>where
T: Arbitrary<'arbitrary>,
impl<'arbitrary, T> Arbitrary<'arbitrary> for Recovered<T>where
T: Arbitrary<'arbitrary>,
§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Recovered<T>, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Recovered<T>, Error>
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>,
) -> Result<Recovered<T>, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary>, ) -> Result<Recovered<T>, Error>
Self
from the entirety of the given
unstructured data. Read more§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured
this type
needs to construct itself. Read more§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 more§impl<T> Encodable2718 for Recovered<T>where
T: Encodable2718,
impl<T> Encodable2718 for Recovered<T>where
T: Encodable2718,
§fn encode_2718_len(&self) -> usize
fn encode_2718_len(&self) -> usize
§fn encode_2718(&self, out: &mut dyn BufMut)
fn encode_2718(&self, out: &mut dyn BufMut)
§fn trie_hash(&self) -> FixedBytes<32>
fn trie_hash(&self) -> FixedBytes<32>
§fn encoded_2718(&self) -> Vec<u8> ⓘ
fn encoded_2718(&self) -> Vec<u8> ⓘ
§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)
§impl<T, TxEnv> IntoTxEnv<TxEnv> for Recovered<T>where
TxEnv: FromRecoveredTx<T>,
impl<T, TxEnv> IntoTxEnv<TxEnv> for Recovered<T>where
TxEnv: FromRecoveredTx<T>,
§fn into_tx_env(self) -> TxEnv
fn into_tx_env(self) -> TxEnv
self
into [TxEnv
].