Struct ethers_providers::FilterWatcher[][src]

#[must_use = "filters do nothing unless you stream them"]pub struct FilterWatcher<'a, P, R> {
    pub id: U256,
    // some fields omitted
}

Streams data from an installed filter via eth_getFilterCahnges

Fields

id: U256

The filter’s installed id on the ethereum node

Implementations

impl<'a, P, R> FilterWatcher<'a, P, R> where
    P: JsonRpcClient,
    R: Send + Sync + DeserializeOwned
[src]

pub fn new<T: Into<U256>>(id: T, provider: &'a Provider<P>) -> Self[src]

Creates a new watcher with the provided factory and filter id.

pub fn interval(self, duration: Duration) -> Self[src]

Sets the stream’s polling interval

pub fn stream(self) -> Pin<Box<Self>>[src]

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

Trait Implementations

impl<'a, P, R> Stream for FilterWatcher<'a, P, R> where
    P: JsonRpcClient,
    R: Serialize + Send + Sync + DeserializeOwned + Debug + 'a, 
[src]

type Item = R

Values yielded by the stream.

impl<'pin, 'a, P, R> Unpin for FilterWatcher<'a, P, R> where
    __FilterWatcher<'pin, 'a, P, R>: Unpin
[src]

Auto Trait Implementations

impl<'a, P, R> !RefUnwindSafe for FilterWatcher<'a, P, R>

impl<'a, P, R> Send for FilterWatcher<'a, P, R> where
    P: Sync,
    R: Send

impl<'a, P, R> !Sync for FilterWatcher<'a, P, R>

impl<'a, P, R> !UnwindSafe for FilterWatcher<'a, P, R>

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> Conv for T

impl<T> FmtForward for T

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> StreamExt for T where
    T: Stream + ?Sized
[src]

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

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<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized
[src]

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