[][src]Trait ethers_providers::FilterStream

pub trait FilterStream<R>: StreamExt + Stream<Item = R> where
    R: for<'de> Deserialize<'de>, 
{ fn id(&self) -> U256;
fn interval<T: Into<u64>>(self, duration: T) -> Self; fn stream(self) -> Pin<Box<Self>>
    where
        Self: Sized
, { ... } }

Trait for streaming filters. You can get the id.

Required methods

fn id(&self) -> U256

Returns the filter's ID for it to be uninstalled

fn interval<T: Into<u64>>(self, duration: T) -> Self

Sets the stream's polling interval

Loading content...

Provided methods

fn stream(self) -> Pin<Box<Self>> where
    Self: Sized

Alias for Box::pin, must be called in order to pin the stream and be able to call next on it.

Loading content...

Implementors

Loading content...