[][src]Struct web3::api::BaseFilter

pub struct BaseFilter<T: Transport, I> { /* fields omitted */ }

Base filter handle. Uninstall filter on drop. Allows to poll the filter.

Implementations

impl<T: Transport, I> BaseFilter<T, I>[src]

pub async fn uninstall(self) -> Result<bool> where
    Self: Sized
[src]

Uninstalls the filter

pub fn transport(&self) -> &T[src]

Borrows the transport.

impl<T: Transport, I: DeserializeOwned> BaseFilter<T, I>[src]

pub async fn poll<'_>(&'_ self) -> Result<Option<Vec<I>>>[src]

Polls this filter for changes. Will return logs that happened after previous poll.

pub fn stream(self, poll_interval: Duration) -> impl Stream<Item = Result<I>>[src]

Returns the stream of items which automatically polls the server

impl<T: Transport> BaseFilter<T, Log>[src]

pub async fn logs<'_>(&'_ self) -> Result<Vec<Log>>[src]

Returns future with all logs matching given filter

Trait Implementations

impl<T: Transport, I> Clone for BaseFilter<T, I>[src]

impl<T: Transport, I: 'static> Debug for BaseFilter<T, I>[src]

Auto Trait Implementations

impl<T, I> RefUnwindSafe for BaseFilter<T, I> where
    I: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, I> Send for BaseFilter<T, I> where
    I: Send,
    T: Send

impl<T, I> Sync for BaseFilter<T, I> where
    I: Sync,
    T: Sync

impl<T, I> Unpin for BaseFilter<T, I> where
    I: Unpin,
    T: Unpin

impl<T, I> UnwindSafe for BaseFilter<T, I> where
    I: UnwindSafe,
    T: UnwindSafe

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> Instrument for T[src]

impl<T> Instrument 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>,