pub struct FilterStream<S, F> { /* private fields */ }Expand description
Stream that filters items.
Trait Implementations§
Source§impl<S, F> SymbolStream for FilterStream<S, F>
impl<S, F> SymbolStream for FilterStream<S, F>
Source§fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Option<Result<AuthenticatedSymbol, StreamError>>>
fn poll_next( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Option<Result<AuthenticatedSymbol, StreamError>>>
Receive the next symbol. Read more
Source§fn is_exhausted(&self) -> bool
fn is_exhausted(&self) -> bool
Check if the stream is exhausted.
Auto Trait Implementations§
impl<S, F> Freeze for FilterStream<S, F>
impl<S, F> RefUnwindSafe for FilterStream<S, F>where
S: RefUnwindSafe,
F: RefUnwindSafe,
impl<S, F> Send for FilterStream<S, F>
impl<S, F> Sync for FilterStream<S, F>
impl<S, F> Unpin for FilterStream<S, F>
impl<S, F> UnsafeUnpin for FilterStream<S, F>where
S: UnsafeUnpin,
F: UnsafeUnpin,
impl<S, F> UnwindSafe for FilterStream<S, F>where
S: UnwindSafe,
F: 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<S> SymbolStreamExt for Swhere
S: SymbolStream + ?Sized,
impl<S> SymbolStreamExt for Swhere
S: SymbolStream + ?Sized,
Source§fn collect_to_set<'a>(
&'a mut self,
set: &'a mut SymbolSet,
) -> CollectToSetFuture<'a, Self> ⓘwhere
Self: Unpin,
fn collect_to_set<'a>(
&'a mut self,
set: &'a mut SymbolSet,
) -> CollectToSetFuture<'a, Self> ⓘwhere
Self: Unpin,
Collect all symbols into a SymbolSet.
Source§fn filter<F>(self, f: F) -> FilterStream<Self, F>
fn filter<F>(self, f: F) -> FilterStream<Self, F>
Filter symbols.
Source§fn for_block(
self,
sbn: u8,
) -> FilterStream<Self, Box<dyn FnMut(&AuthenticatedSymbol) -> bool + Send>>where
Self: Sized + 'static,
fn for_block(
self,
sbn: u8,
) -> FilterStream<Self, Box<dyn FnMut(&AuthenticatedSymbol) -> bool + Send>>where
Self: Sized + 'static,
Take only symbols for a specific block.
Source§fn timeout(self, duration: Duration) -> TimeoutStream<Self>where
Self: Sized,
fn timeout(self, duration: Duration) -> TimeoutStream<Self>where
Self: Sized,
Timeout on symbol reception.
Source§fn next_with_cancel<'a>(
&'a mut self,
cx: &'a Cx,
) -> NextWithCancelFuture<'a, Self> ⓘwhere
Self: Unpin,
fn next_with_cancel<'a>(
&'a mut self,
cx: &'a Cx,
) -> NextWithCancelFuture<'a, Self> ⓘwhere
Self: Unpin,
Receive the next symbol with cancellation support.