Struct ethcore::filter::Filter
[−]
[src]
pub struct Filter { pub from_block: BlockId, pub to_block: BlockId, pub address: Option<Vec<Address>>, pub topics: Vec<Option<Vec<H256>>>, pub limit: Option<usize>, }
Blockchain Filter.
Fields
from_block: BlockId
Blockchain will be searched from this block.
to_block: BlockId
Till this block.
address: Option<Vec<Address>>
Search addresses.
If None, match all. If specified, log must be produced by one of these addresses.
topics: Vec<Option<Vec<H256>>>
Search topics.
If None, match all. If specified, log must contain one of these topics.
limit: Option<usize>
Logs limit
If None, return all logs
If specified, should only return last n
logs.
Methods
impl Filter
[src]
fn bloom_possibilities(&self) -> Vec<H2048>
Returns combinations of each address and topic.
fn matches(&self, log: &LogEntry) -> bool
Returns true if given log entry matches filter.
Trait Implementations
impl Debug for Filter
[src]
impl PartialEq for Filter
[src]
fn eq(&self, __arg_0: &Filter) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Filter) -> bool
This method tests for !=
.
impl Clone for Filter
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more