pub struct BaseFilter<T: Transport, I> { /* private fields */ }
Expand description
Base filter handle. Uninstall filter on drop. Allows to poll the filter.
Implementations§
Source§impl<T: Transport, I> BaseFilter<T, I>
impl<T: Transport, I> BaseFilter<T, I>
Sourcepub fn poll(&self) -> CallFuture<Option<Vec<I>>, T::Out>
pub fn poll(&self) -> CallFuture<Option<Vec<I>>, T::Out>
Polls this filter for changes. Will return logs that happened after previous poll.
Sourcepub fn stream(self, poll_interval: Duration) -> FilterStream<T, I>
pub fn stream(self, poll_interval: Duration) -> FilterStream<T, I>
Returns the stream of items which automatically polls the server
Trait Implementations§
Source§impl<T: Transport, I> Clone for BaseFilter<T, I>
impl<T: Transport, I> Clone for BaseFilter<T, I>
Auto Trait Implementations§
impl<T, I> Freeze for BaseFilter<T, I>where
T: Freeze,
impl<T, I> RefUnwindSafe for BaseFilter<T, I>where
T: RefUnwindSafe,
I: RefUnwindSafe,
impl<T, I> Send for BaseFilter<T, I>
impl<T, I> Sync for BaseFilter<T, I>
impl<T, I> Unpin for BaseFilter<T, I>
impl<T, I> UnwindSafe for BaseFilter<T, I>where
T: UnwindSafe,
I: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more