[−][src]Struct web3::api::BaseFilter
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]
Self: Sized,
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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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,
I: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, I> Send for BaseFilter<T, I> where
I: Send,
T: Send,
I: Send,
T: Send,
impl<T, I> Sync for BaseFilter<T, I> where
I: Sync,
T: Sync,
I: Sync,
T: Sync,
impl<T, I> Unpin for BaseFilter<T, I> where
I: Unpin,
T: Unpin,
I: Unpin,
T: Unpin,
impl<T, I> UnwindSafe for BaseFilter<T, I> where
I: UnwindSafe,
T: UnwindSafe,
I: UnwindSafe,
T: UnwindSafe,
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> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[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>,