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§

1.33.0 · source§

impl<P> Deref for Pin<P>where P: Deref,

§

type Target = <P as Deref>::Target

The resulting type after dereferencing.
source§

fn deref(&self) -> &<P as Deref>::Target

Dereferences the value.
source§

impl<P> FusedFuture for Pin<P>where P: DerefMut + Unpin, P::Target: FusedFuture,

source§

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,

source§

fn is_terminated(&self) -> bool

Returns true if the stream should no longer be polled.
source§

impl<P> Stream for Pin<P>where P: DerefMut + Unpin, P::Target: Stream,

§

type Item = <<P as Deref>::Target as Stream>::Item

Values yielded by the stream.
source§

fn poll_next( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Option<Self::Item>>

Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the stream. Read more