[][src]Struct ethers_core::types::Filter

pub struct Filter {
    pub from_block: Option<BlockNumber>,
    pub to_block: Option<BlockNumber>,
    pub topics: [Option<ValueOrArray<H256>>; 4],
    // some fields omitted
}

Filter for

Fields

from_block: Option<BlockNumber>

From Block

to_block: Option<BlockNumber>

To Block

topics: [Option<ValueOrArray<H256>>; 4]

Topics

Implementations

impl Filter[src]

pub fn new() -> Self[src]

pub fn from_block<T: Into<BlockNumber>>(self, block: T) -> Self[src]

pub fn to_block<T: Into<BlockNumber>>(self, block: T) -> Self[src]

pub fn address<T: Into<Address>>(self, address: T) -> Self[src]

pub fn address_str(self, address: &str) -> Result<Self, FromHexError>[src]

pub fn event(self, event_name: &str) -> Self[src]

given the event in string form, it hashes it and adds it to the topics to monitor

pub fn topic0<T: Into<ValueOrArray<H256>>>(self, topic: T) -> Self[src]

Sets topic0 (the event name for non-anonymous events)

pub fn topic1<T: Into<ValueOrArray<H256>>>(self, topic: T) -> Self[src]

Sets the 1st indexed topic

pub fn topic2<T: Into<ValueOrArray<H256>>>(self, topic: T) -> Self[src]

Sets the 2nd indexed topic

pub fn topic3<T: Into<ValueOrArray<H256>>>(self, topic: T) -> Self[src]

Sets the 3rd indexed topic

pub fn limit(self, limit: usize) -> Self[src]

Trait Implementations

impl Clone for Filter[src]

impl Debug for Filter[src]

impl Default for Filter[src]

impl PartialEq<Filter> for Filter[src]

impl Serialize for Filter[src]

impl StructuralPartialEq for Filter[src]

Auto Trait Implementations

impl RefUnwindSafe for Filter

impl Send for Filter

impl Sync for Filter

impl Unpin for Filter

impl UnwindSafe for Filter

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,