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