Type Alias futures_core::stream::BoxStream
source · pub type BoxStream<'a, T> = Pin<Box<dyn Stream<Item = T> + Send + 'a>>;
Expand description
An owned dynamically typed Stream
for use in cases where you can’t
statically type your result or need to add some indirection.
Aliased Type§
struct BoxStream<'a, T> { /* private fields */ }
Trait Implementations§
source§impl<P> FusedFuture for Pin<P>where
P: DerefMut + Unpin,
P::Target: FusedFuture,
impl<P> FusedFuture for Pin<P>where P: DerefMut + Unpin, P::Target: FusedFuture,
source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the underlying future should no longer be polled.source§impl<P> FusedStream for Pin<P>where
P: DerefMut + Unpin,
P::Target: FusedStream,
impl<P> FusedStream for Pin<P>where P: DerefMut + Unpin, P::Target: FusedStream,
source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the stream should no longer be polled.