[−][src]Struct ethers_core::types::Filter
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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,