Trait cfx_rpc_eth_api::EthFilterApiServer
source · pub trait EthFilterApiServer: Sized + Send + Sync + 'static {
// Required methods
fn new_filter<'life0, 'async_trait>(
&'life0 self,
filter: Filter
) -> Pin<Box<dyn Future<Output = RpcResult<FilterId>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn new_block_filter<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = RpcResult<FilterId>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn new_pending_transaction_filter<'life0, 'async_trait>(
&'life0 self,
kind: Option<()>
) -> Pin<Box<dyn Future<Output = RpcResult<FilterId>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn filter_changes<'life0, 'async_trait>(
&'life0 self,
id: FilterId
) -> Pin<Box<dyn Future<Output = RpcResult<FilterChanges>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn filter_logs<'life0, 'async_trait>(
&'life0 self,
id: FilterId
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<Log>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn uninstall_filter<'life0, 'async_trait>(
&'life0 self,
id: FilterId
) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description
Server trait implementation for the EthFilterApi
RPC API.
Required Methods§
sourcefn new_filter<'life0, 'async_trait>(
&'life0 self,
filter: Filter
) -> Pin<Box<dyn Future<Output = RpcResult<FilterId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn new_filter<'life0, 'async_trait>(
&'life0 self,
filter: Filter
) -> Pin<Box<dyn Future<Output = RpcResult<FilterId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Creates anew filter and returns its id.
sourcefn new_block_filter<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = RpcResult<FilterId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn new_block_filter<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = RpcResult<FilterId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Creates a new block filter and returns its id.
sourcefn new_pending_transaction_filter<'life0, 'async_trait>(
&'life0 self,
kind: Option<()>
) -> Pin<Box<dyn Future<Output = RpcResult<FilterId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn new_pending_transaction_filter<'life0, 'async_trait>(
&'life0 self,
kind: Option<()>
) -> Pin<Box<dyn Future<Output = RpcResult<FilterId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Creates a pending transaction filter and returns its id.
sourcefn filter_changes<'life0, 'async_trait>(
&'life0 self,
id: FilterId
) -> Pin<Box<dyn Future<Output = RpcResult<FilterChanges>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn filter_changes<'life0, 'async_trait>(
&'life0 self,
id: FilterId
) -> Pin<Box<dyn Future<Output = RpcResult<FilterChanges>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns all filter changes since last poll.
Provided Methods§
Object Safety§
This trait is not object safe.