[][src]Struct web3_etz::api::BaseFilter

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

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

Methods

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

pub fn poll(&self) -> CallFuture<Option<Vec<I>>, T::Out>[src]

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

pub fn stream(self, poll_interval: Duration) -> FilterStream<T, I>[src]

Returns the stream of items which automatically polls the server

pub fn uninstall(self) -> CallFuture<bool, T::Out> where
    Self: Sized
[src]

Uninstalls the filter

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

Borrows the transport.

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

pub fn logs(&self) -> CallFuture<Vec<Log>, T::Out>[src]

Returns future with all logs matching given filter

Trait Implementations

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.