Trait fc_rpc::EthFilterApiServer
pub trait EthFilterApiServer: Sized + Send + Sync + 'static {
// Required methods
fn new_filter(&self, filter: Filter) -> Result<U256, Error>;
fn new_block_filter(&self) -> Result<U256, Error>;
fn new_pending_transaction_filter(&self) -> Result<U256, Error>;
fn filter_changes<'life0, 'async_trait>(
&'life0 self,
index: Index
) -> Pin<Box<dyn Future<Output = Result<FilterChanges, Error>> + Send + 'async_trait, Global>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn filter_logs<'life0, 'async_trait>(
&'life0 self,
index: Index
) -> Pin<Box<dyn Future<Output = Result<Vec<Log, Global>, Error>> + Send + 'async_trait, Global>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn uninstall_filter(&self, index: Index) -> Result<bool, Error>;
fn logs<'life0, 'async_trait>(
&'life0 self,
filter: Filter
) -> Pin<Box<dyn Future<Output = Result<Vec<Log, Global>, Error>> + Send + 'async_trait, Global>>
where 'life0: 'async_trait,
Self: 'async_trait;
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description
Server trait implementation for the EthFilterApi
RPC API.
Required Methods§
fn new_filter(&self, filter: Filter) -> Result<U256, Error>
fn new_filter(&self, filter: Filter) -> Result<U256, Error>
Returns id of new filter.
fn new_block_filter(&self) -> Result<U256, Error>
fn new_block_filter(&self) -> Result<U256, Error>
Returns id of new block filter.
fn new_pending_transaction_filter(&self) -> Result<U256, Error>
fn new_pending_transaction_filter(&self) -> Result<U256, Error>
Returns id of new block filter.
fn filter_changes<'life0, 'async_trait>(
&'life0 self,
index: Index
) -> Pin<Box<dyn Future<Output = Result<FilterChanges, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn filter_changes<'life0, 'async_trait>( &'life0 self, index: Index ) -> Pin<Box<dyn Future<Output = Result<FilterChanges, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,
Returns filter changes since last poll.
fn filter_logs<'life0, 'async_trait>(
&'life0 self,
index: Index
) -> Pin<Box<dyn Future<Output = Result<Vec<Log, Global>, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn filter_logs<'life0, 'async_trait>( &'life0 self, index: Index ) -> Pin<Box<dyn Future<Output = Result<Vec<Log, Global>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,
Returns all logs matching given filter (in a range ‘from’ - ‘to’).
fn uninstall_filter(&self, index: Index) -> Result<bool, Error>
fn uninstall_filter(&self, index: Index) -> Result<bool, Error>
Uninstalls filter.
Provided Methods§
fn into_rpc(self) -> RpcModule<Self>
fn into_rpc(self) -> RpcModule<Self>
Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule
.