Type Alias futures_core::future::LocalBoxFuture
source · pub type LocalBoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + 'a>>;
Expand description
BoxFuture
, but without the Send
requirement.
Aliased Type§
struct LocalBoxFuture<'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.