pub trait EthFilterApiClient: ClientT {
// Provided methods
fn new_filter<'life0, 'async_trait>(
&'life0 self,
filter: Filter,
) -> Pin<Box<dyn Future<Output = Result<U256, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn new_block_filter<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<U256, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn new_pending_transaction_filter<'life0, 'async_trait>(
&'life0 self,
full: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<U256, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn uninstall_filter<'life0, 'async_trait>(
&'life0 self,
filter_id: Index,
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn filter_changes<'life0, 'async_trait>(
&'life0 self,
filter_id: Index,
) -> Pin<Box<dyn Future<Output = Result<FilterChanges, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn filter_logs<'life0, 'async_trait>(
&'life0 self,
filter_id: Index,
) -> Pin<Box<dyn Future<Output = Result<Vec<Log>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn logs<'life0, 'async_trait>(
&'life0 self,
filter: Filter,
) -> Pin<Box<dyn Future<Output = Result<Vec<Log>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Client implementation for the EthFilterApi
RPC API.
Provided Methods§
Sourcefn new_filter<'life0, 'async_trait>(
&'life0 self,
filter: Filter,
) -> Pin<Box<dyn Future<Output = Result<U256, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn new_filter<'life0, 'async_trait>(
&'life0 self,
filter: Filter,
) -> Pin<Box<dyn Future<Output = Result<U256, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Creates a filter object, based on filter options, to notify when the state changes (logs).
Sourcefn new_block_filter<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<U256, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn new_block_filter<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<U256, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Creates a filter in the node, to notify when a new block arrives.
Sourcefn new_pending_transaction_filter<'life0, 'async_trait>(
&'life0 self,
full: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<U256, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn new_pending_transaction_filter<'life0, 'async_trait>(
&'life0 self,
full: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<U256, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Creates a filter in the node, to notify when new pending transactions arrive.
Sourcefn uninstall_filter<'life0, 'async_trait>(
&'life0 self,
filter_id: Index,
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn uninstall_filter<'life0, 'async_trait>(
&'life0 self,
filter_id: Index,
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Uninstalls a filter with given id.
Sourcefn filter_changes<'life0, 'async_trait>(
&'life0 self,
filter_id: Index,
) -> Pin<Box<dyn Future<Output = Result<FilterChanges, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn filter_changes<'life0, 'async_trait>(
&'life0 self,
filter_id: Index,
) -> Pin<Box<dyn Future<Output = Result<FilterChanges, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Polling method for a filter, which returns an array of logs which occurred since last poll.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.