[−][src]Struct ethers_middleware::nonce_manager::NonceManagerMiddleware
Middleware used for calculating nonces locally, useful for signing multiple consecutive transactions without waiting for them to hit the mempool
Implementations
impl<M> NonceManagerMiddleware<M> where
M: Middleware, [src]
M: Middleware,
pub fn new(inner: M, address: Address) -> Self[src]
Instantiates the nonce manager with a 0 nonce. The address should be the
address which you'll be sending transactions from
pub fn next(&self) -> U256[src]
Returns the next nonce to be used
Trait Implementations
impl<M: Debug> Debug for NonceManagerMiddleware<M>[src]
impl<M> Middleware for NonceManagerMiddleware<M> where
M: Middleware, [src]
M: Middleware,
type Error = NonceManagerError<M>
type Provider = M::Provider
type Inner = M
pub fn inner(&self) -> &M[src]
pub fn send_transaction<'life0, 'async_trait>(
&'life0 self,
tx: TransactionRequest,
block: Option<BlockNumber>
) -> Pin<Box<dyn Future<Output = Result<PendingTransaction<'_, Self::Provider>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
tx: TransactionRequest,
block: Option<BlockNumber>
) -> Pin<Box<dyn Future<Output = Result<PendingTransaction<'_, Self::Provider>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Signs and broadcasts the transaction. The optional parameter block can be passed so that
gas cost and nonce calculations take it into account. For simple transactions this can be
left to None.
pub fn provider(&self) -> &Provider<Self::Provider>[src]
#[must_use]pub fn get_block_number<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<U64, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<U64, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn resolve_name<'life0, 'life1, 'async_trait>(
&'life0 self,
ens_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<H160, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
ens_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<H160, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn lookup_address<'life0, 'async_trait>(
&'life0 self,
address: H160
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
address: H160
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn get_block<'life0, 'async_trait, T>(
&'life0 self,
block_hash_or_number: T
) -> Pin<Box<dyn Future<Output = Result<Option<Block<H256>>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<BlockId> + Send + Sync + 'async_trait, [src]
&'life0 self,
block_hash_or_number: T
) -> Pin<Box<dyn Future<Output = Result<Option<Block<H256>>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<BlockId> + Send + Sync + 'async_trait,
#[must_use]pub fn get_block_with_txs<'life0, 'async_trait, T>(
&'life0 self,
block_hash_or_number: T
) -> Pin<Box<dyn Future<Output = Result<Option<Block<Transaction>>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<BlockId> + Send + Sync + 'async_trait, [src]
&'life0 self,
block_hash_or_number: T
) -> Pin<Box<dyn Future<Output = Result<Option<Block<Transaction>>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<BlockId> + Send + Sync + 'async_trait,
#[must_use]pub fn get_transaction_count<'life0, 'async_trait, T>(
&'life0 self,
from: T,
block: Option<BlockNumber>
) -> Pin<Box<dyn Future<Output = Result<U256, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<NameOrAddress> + Send + Sync + 'async_trait, [src]
&'life0 self,
from: T,
block: Option<BlockNumber>
) -> Pin<Box<dyn Future<Output = Result<U256, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<NameOrAddress> + Send + Sync + 'async_trait,
#[must_use]pub fn estimate_gas<'life0, 'life1, 'async_trait>(
&'life0 self,
tx: &'life1 TransactionRequest
) -> Pin<Box<dyn Future<Output = Result<U256, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
tx: &'life1 TransactionRequest
) -> Pin<Box<dyn Future<Output = Result<U256, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
tx: &'life1 TransactionRequest,
block: Option<BlockNumber>
) -> Pin<Box<dyn Future<Output = Result<Bytes, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
tx: &'life1 TransactionRequest,
block: Option<BlockNumber>
) -> Pin<Box<dyn Future<Output = Result<Bytes, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn get_chainid<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<U256, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<U256, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn get_balance<'life0, 'async_trait, T>(
&'life0 self,
from: T,
block: Option<BlockNumber>
) -> Pin<Box<dyn Future<Output = Result<U256, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<NameOrAddress> + Send + Sync + 'async_trait, [src]
&'life0 self,
from: T,
block: Option<BlockNumber>
) -> Pin<Box<dyn Future<Output = Result<U256, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<NameOrAddress> + Send + Sync + 'async_trait,
#[must_use]pub fn get_transaction<'life0, 'async_trait, T>(
&'life0 self,
transaction_hash: T
) -> Pin<Box<dyn Future<Output = Result<Option<Transaction>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<H256> + Send + Sync + 'async_trait, [src]
&'life0 self,
transaction_hash: T
) -> Pin<Box<dyn Future<Output = Result<Option<Transaction>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<H256> + Send + Sync + 'async_trait,
#[must_use]pub fn get_transaction_receipt<'life0, 'async_trait, T>(
&'life0 self,
transaction_hash: T
) -> Pin<Box<dyn Future<Output = Result<Option<TransactionReceipt>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<H256> + Send + Sync + 'async_trait, [src]
&'life0 self,
transaction_hash: T
) -> Pin<Box<dyn Future<Output = Result<Option<TransactionReceipt>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<H256> + Send + Sync + 'async_trait,
#[must_use]pub fn get_gas_price<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<U256, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<U256, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn get_accounts<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<H160, Global>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<H160, Global>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn send_raw_transaction<'a, 'life0, 'async_trait>(
&'a self,
tx: &'life0 Transaction
) -> Pin<Box<dyn Future<Output = Result<PendingTransaction<'a, Self::Provider>, Self::Error>> + 'async_trait + Send, Global>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait, [src]
&'a self,
tx: &'life0 Transaction
) -> Pin<Box<dyn Future<Output = Result<PendingTransaction<'a, Self::Provider>, Self::Error>> + 'async_trait + Send, Global>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn sign<'life0, 'life1, 'async_trait, T>(
&'life0 self,
data: T,
from: &'life1 H160
) -> Pin<Box<dyn Future<Output = Result<Signature, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
T: Into<Bytes> + Send + Sync + 'async_trait, [src]
&'life0 self,
data: T,
from: &'life1 H160
) -> Pin<Box<dyn Future<Output = Result<Signature, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
T: Into<Bytes> + Send + Sync + 'async_trait,
#[must_use]pub fn get_logs<'life0, 'life1, 'async_trait>(
&'life0 self,
filter: &'life1 Filter
) -> Pin<Box<dyn Future<Output = Result<Vec<Log, Global>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
filter: &'life1 Filter
) -> Pin<Box<dyn Future<Output = Result<Vec<Log, Global>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn new_filter<'life0, 'life1, 'async_trait>(
&'life0 self,
filter: FilterKind<'life1>
) -> Pin<Box<dyn Future<Output = Result<U256, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
filter: FilterKind<'life1>
) -> Pin<Box<dyn Future<Output = Result<U256, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn uninstall_filter<'life0, 'async_trait, T>(
&'life0 self,
id: T
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<U256> + Send + Sync + 'async_trait, [src]
&'life0 self,
id: T
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<U256> + Send + Sync + 'async_trait,
#[must_use]pub fn watch<'a, 'life0, 'async_trait>(
&'a self,
filter: &'life0 Filter
) -> Pin<Box<dyn Future<Output = Result<FilterWatcher<'a, Self::Provider, Log>, Self::Error>> + 'async_trait + Send, Global>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait, [src]
&'a self,
filter: &'life0 Filter
) -> Pin<Box<dyn Future<Output = Result<FilterWatcher<'a, Self::Provider, Log>, Self::Error>> + 'async_trait + Send, Global>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn watch_pending_transactions<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<FilterWatcher<'life0, Self::Provider, H256>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<FilterWatcher<'life0, Self::Provider, H256>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn get_filter_changes<'life0, 'async_trait, T, R>(
&'life0 self,
id: T
) -> Pin<Box<dyn Future<Output = Result<Vec<R, Global>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<U256> + Send + Sync + 'async_trait,
R: Serialize + DeserializeOwned + Send + Sync + Debug + 'async_trait, [src]
&'life0 self,
id: T
) -> Pin<Box<dyn Future<Output = Result<Vec<R, Global>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<U256> + Send + Sync + 'async_trait,
R: Serialize + DeserializeOwned + Send + Sync + Debug + 'async_trait,
#[must_use]pub fn watch_blocks<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<FilterWatcher<'life0, Self::Provider, H256>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<FilterWatcher<'life0, Self::Provider, H256>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn get_code<'life0, 'async_trait, T>(
&'life0 self,
at: T,
block: Option<BlockNumber>
) -> Pin<Box<dyn Future<Output = Result<Bytes, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<NameOrAddress> + Send + Sync + 'async_trait, [src]
&'life0 self,
at: T,
block: Option<BlockNumber>
) -> Pin<Box<dyn Future<Output = Result<Bytes, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<NameOrAddress> + Send + Sync + 'async_trait,
#[must_use]pub fn get_storage_at<'life0, 'async_trait, T>(
&'life0 self,
from: T,
location: H256,
block: Option<BlockNumber>
) -> Pin<Box<dyn Future<Output = Result<H256, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<NameOrAddress> + Send + Sync + 'async_trait, [src]
&'life0 self,
from: T,
location: H256,
block: Option<BlockNumber>
) -> Pin<Box<dyn Future<Output = Result<H256, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<NameOrAddress> + Send + Sync + 'async_trait,
#[must_use]pub fn txpool_content<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<TxpoolContent, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<TxpoolContent, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn txpool_inspect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<TxpoolInspect, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<TxpoolInspect, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn txpool_status<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<TxpoolStatus, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<TxpoolStatus, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn trace_call<'life0, 'async_trait>(
&'life0 self,
req: TransactionRequest,
trace_type: Vec<TraceType, Global>,
block: Option<BlockNumber>
) -> Pin<Box<dyn Future<Output = Result<BlockTrace, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
req: TransactionRequest,
trace_type: Vec<TraceType, Global>,
block: Option<BlockNumber>
) -> Pin<Box<dyn Future<Output = Result<BlockTrace, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn trace_raw_transaction<'life0, 'async_trait>(
&'life0 self,
data: Bytes,
trace_type: Vec<TraceType, Global>
) -> Pin<Box<dyn Future<Output = Result<BlockTrace, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
data: Bytes,
trace_type: Vec<TraceType, Global>
) -> Pin<Box<dyn Future<Output = Result<BlockTrace, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn trace_replay_transaction<'life0, 'async_trait>(
&'life0 self,
hash: H256,
trace_type: Vec<TraceType, Global>
) -> Pin<Box<dyn Future<Output = Result<BlockTrace, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
hash: H256,
trace_type: Vec<TraceType, Global>
) -> Pin<Box<dyn Future<Output = Result<BlockTrace, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn trace_replay_block_transactions<'life0, 'async_trait>(
&'life0 self,
block: BlockNumber,
trace_type: Vec<TraceType, Global>
) -> Pin<Box<dyn Future<Output = Result<Vec<BlockTrace, Global>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
block: BlockNumber,
trace_type: Vec<TraceType, Global>
) -> Pin<Box<dyn Future<Output = Result<Vec<BlockTrace, Global>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn trace_block<'life0, 'async_trait>(
&'life0 self,
block: BlockNumber
) -> Pin<Box<dyn Future<Output = Result<Vec<Trace, Global>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
block: BlockNumber
) -> Pin<Box<dyn Future<Output = Result<Vec<Trace, Global>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn trace_filter<'life0, 'async_trait>(
&'life0 self,
filter: TraceFilter
) -> Pin<Box<dyn Future<Output = Result<Vec<Trace, Global>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
filter: TraceFilter
) -> Pin<Box<dyn Future<Output = Result<Vec<Trace, Global>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn trace_get<'life0, 'async_trait, T>(
&'life0 self,
hash: H256,
index: Vec<T, Global>
) -> Pin<Box<dyn Future<Output = Result<Trace, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<U64> + Send + Sync + 'async_trait, [src]
&'life0 self,
hash: H256,
index: Vec<T, Global>
) -> Pin<Box<dyn Future<Output = Result<Trace, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<U64> + Send + Sync + 'async_trait,
#[must_use]pub fn trace_transaction<'life0, 'async_trait>(
&'life0 self,
hash: H256
) -> Pin<Box<dyn Future<Output = Result<Vec<Trace, Global>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
hash: H256
) -> Pin<Box<dyn Future<Output = Result<Vec<Trace, Global>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn parity_block_receipts<'life0, 'async_trait, T>(
&'life0 self,
block: T
) -> Pin<Box<dyn Future<Output = Result<Vec<TransactionReceipt, Global>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<BlockNumber> + Send + Sync + 'async_trait, [src]
&'life0 self,
block: T
) -> Pin<Box<dyn Future<Output = Result<Vec<TransactionReceipt, Global>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<BlockNumber> + Send + Sync + 'async_trait,
#[must_use]pub fn subscribe<'life0, 'async_trait, T, R>(
&'life0 self,
params: T
) -> Pin<Box<dyn Future<Output = Result<SubscriptionStream<'life0, Self::Provider, R>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Debug + Serialize + Send + Sync + 'async_trait,
R: DeserializeOwned + Send + Sync + 'async_trait,
Self::Provider: PubsubClient, [src]
&'life0 self,
params: T
) -> Pin<Box<dyn Future<Output = Result<SubscriptionStream<'life0, Self::Provider, R>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Debug + Serialize + Send + Sync + 'async_trait,
R: DeserializeOwned + Send + Sync + 'async_trait,
Self::Provider: PubsubClient,
#[must_use]pub fn unsubscribe<'life0, 'async_trait, T>(
&'life0 self,
id: T
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<U256> + Send + Sync + 'async_trait,
Self::Provider: PubsubClient, [src]
&'life0 self,
id: T
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
T: Into<U256> + Send + Sync + 'async_trait,
Self::Provider: PubsubClient,
#[must_use]pub fn subscribe_blocks<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<SubscriptionStream<'life0, Self::Provider, Block<H256>>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
Self::Provider: PubsubClient, [src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<SubscriptionStream<'life0, Self::Provider, Block<H256>>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
Self::Provider: PubsubClient,
#[must_use]pub fn subscribe_pending_txs<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<SubscriptionStream<'life0, Self::Provider, H256>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
Self::Provider: PubsubClient, [src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<SubscriptionStream<'life0, Self::Provider, H256>, Self::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
Self::Provider: PubsubClient,
#[must_use]pub fn subscribe_logs<'a, 'life0, 'async_trait>(
&'a self,
filter: &'life0 Filter
) -> Pin<Box<dyn Future<Output = Result<SubscriptionStream<'a, Self::Provider, Log>, Self::Error>> + 'async_trait + Send, Global>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Self::Provider: PubsubClient, [src]
&'a self,
filter: &'life0 Filter
) -> Pin<Box<dyn Future<Output = Result<SubscriptionStream<'a, Self::Provider, Log>, Self::Error>> + 'async_trait + Send, Global>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Self::Provider: PubsubClient,
Auto Trait Implementations
impl<M> RefUnwindSafe for NonceManagerMiddleware<M> where
M: RefUnwindSafe, [src]
M: RefUnwindSafe,
impl<M> Send for NonceManagerMiddleware<M> where
M: Send, [src]
M: Send,
impl<M> Sync for NonceManagerMiddleware<M> where
M: Sync, [src]
M: Sync,
impl<M> Unpin for NonceManagerMiddleware<M> where
M: Unpin, [src]
M: Unpin,
impl<M> UnwindSafe for NonceManagerMiddleware<M> where
M: UnwindSafe, [src]
M: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Conv for T
impl<T> FmtForward for T
pub fn fmt_binary(self) -> FmtBinary<Self> where
Self: Binary,
Self: Binary,
pub fn fmt_display(self) -> FmtDisplay<Self> where
Self: Display,
Self: Display,
pub fn fmt_lower_exp(self) -> FmtLowerExp<Self> where
Self: LowerExp,
Self: LowerExp,
pub fn fmt_lower_hex(self) -> FmtLowerHex<Self> where
Self: LowerHex,
Self: LowerHex,
pub fn fmt_octal(self) -> FmtOctal<Self> where
Self: Octal,
Self: Octal,
pub fn fmt_pointer(self) -> FmtPointer<Self> where
Self: Pointer,
Self: Pointer,
pub fn fmt_upper_exp(self) -> FmtUpperExp<Self> where
Self: UpperExp,
Self: UpperExp,
pub fn fmt_upper_hex(self) -> FmtUpperHex<Self> where
Self: UpperHex,
Self: UpperHex,
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Pipe for T
impl<T> PipeAsRef for T
pub fn pipe_as_ref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: AsRef<T>,
T: 'a,
R: 'a,
Self: AsRef<T>,
T: 'a,
R: 'a,
pub fn pipe_as_mut<'a, T, R>(
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: AsMut<T>,
T: 'a,
R: 'a,
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: AsMut<T>,
T: 'a,
R: 'a,
impl<T> PipeBorrow for T
pub fn pipe_borrow<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: Borrow<T>,
T: 'a,
R: 'a,
Self: Borrow<T>,
T: 'a,
R: 'a,
pub fn pipe_borrow_mut<'a, T, R>(
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: BorrowMut<T>,
T: 'a,
R: 'a,
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: BorrowMut<T>,
T: 'a,
R: 'a,
impl<T> PipeDeref for T
pub fn pipe_deref<'a, R>(
&'a self,
func: impl FnOnce(&'a Self::Target) -> R
) -> R where
Self: Deref,
R: 'a,
&'a self,
func: impl FnOnce(&'a Self::Target) -> R
) -> R where
Self: Deref,
R: 'a,
pub fn pipe_deref_mut<'a, R>(
&'a mut self,
func: impl FnOnce(&'a mut Self::Target) -> R
) -> R where
Self: DerefMut,
R: 'a,
&'a mut self,
func: impl FnOnce(&'a mut Self::Target) -> R
) -> R where
Self: DerefMut,
R: 'a,
impl<T> PipeRef for T
pub fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R where
R: 'a,
R: 'a,
pub fn pipe_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R where
R: 'a,
R: 'a,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Tap for T
pub fn tap<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
F: FnOnce(&Self) -> R,
pub fn tap_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
F: FnOnce(&Self) -> R,
pub fn tap_mut<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
F: FnOnce(&mut Self) -> R,
pub fn tap_mut_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
F: FnOnce(&mut Self) -> R,
impl<T, U> TapAsRef<U> for T where
U: ?Sized,
U: ?Sized,
pub fn tap_ref<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
Self: AsRef<T>,
F: FnOnce(&T) -> R,
pub fn tap_ref_dbg<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
Self: AsRef<T>,
F: FnOnce(&T) -> R,
pub fn tap_ref_mut<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
pub fn tap_ref_mut_dbg<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
impl<T, U> TapBorrow<U> for T where
U: ?Sized,
U: ?Sized,
pub fn tap_borrow<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
Self: Borrow<T>,
F: FnOnce(&T) -> R,
pub fn tap_borrow_dbg<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
Self: Borrow<T>,
F: FnOnce(&T) -> R,
pub fn tap_borrow_mut<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
pub fn tap_borrow_mut_dbg<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
impl<T> TapDeref for T
pub fn tap_deref<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
Self: Deref,
F: FnOnce(&Self::Target) -> R,
pub fn tap_deref_dbg<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
Self: Deref,
F: FnOnce(&Self::Target) -> R,
pub fn tap_deref_mut<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
pub fn tap_deref_mut_dbg<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
impl<T> TryConv for T
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,