pub trait EthFilterApiClient<T>: ClientT{
// Provided methods
fn new_filter(
&self,
filter: Filter,
) -> impl Future<Output = Result<FilterId, Error>> + Send { ... }
fn new_block_filter(
&self,
) -> impl Future<Output = Result<FilterId, Error>> + Send { ... }
fn new_pending_transaction_filter(
&self,
kind: Option<PendingTransactionFilterKind>,
) -> impl Future<Output = Result<FilterId, Error>> + Send { ... }
fn filter_changes(
&self,
id: FilterId,
) -> impl Future<Output = Result<FilterChanges<T>, Error>> + Send { ... }
fn filter_logs(
&self,
id: FilterId,
) -> impl Future<Output = Result<Vec<Log>, Error>> + Send { ... }
fn uninstall_filter(
&self,
id: FilterId,
) -> impl Future<Output = Result<bool, Error>> + Send { ... }
fn logs(
&self,
filter: Filter,
) -> impl Future<Output = Result<Vec<Log>, Error>> + Send { ... }
}
Expand description
Client implementation for the EthFilterApi
RPC API.
Provided Methods§
Sourcefn new_filter(
&self,
filter: Filter,
) -> impl Future<Output = Result<FilterId, Error>> + Send
fn new_filter( &self, filter: Filter, ) -> impl Future<Output = Result<FilterId, Error>> + Send
Creates a new filter and returns its id.
Sourcefn new_block_filter(
&self,
) -> impl Future<Output = Result<FilterId, Error>> + Send
fn new_block_filter( &self, ) -> impl Future<Output = Result<FilterId, Error>> + Send
Creates a new block filter and returns its id.
Sourcefn new_pending_transaction_filter(
&self,
kind: Option<PendingTransactionFilterKind>,
) -> impl Future<Output = Result<FilterId, Error>> + Send
fn new_pending_transaction_filter( &self, kind: Option<PendingTransactionFilterKind>, ) -> impl Future<Output = Result<FilterId, Error>> + Send
Creates a pending transaction filter and returns its id.
Sourcefn filter_changes(
&self,
id: FilterId,
) -> impl Future<Output = Result<FilterChanges<T>, Error>> + Send
fn filter_changes( &self, id: FilterId, ) -> impl Future<Output = Result<FilterChanges<T>, Error>> + Send
Returns all filter changes since last poll.
Sourcefn filter_logs(
&self,
id: FilterId,
) -> impl Future<Output = Result<Vec<Log>, Error>> + Send
fn filter_logs( &self, id: FilterId, ) -> impl Future<Output = Result<Vec<Log>, Error>> + Send
Returns all logs matching given filter (in a range ‘from’ - ‘to’).
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.