Struct core::task::TaskObj [−][src]
pub struct TaskObj { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (futures_api
#50547)
futures in libcore are unstable
A custom trait object for polling tasks, roughly akin to
Box<Future<Output = ()> + Send>
.
Methods
impl TaskObj
[src]
impl TaskObj
pub fn new<T: UnsafeTask>(t: T) -> TaskObj
[src]
pub fn new<T: UnsafeTask>(t: T) -> TaskObj
🔬 This is a nightly-only experimental API. (futures_api
#50547)
futures in libcore are unstable
Create a TaskObj
from a custom trait object representation.
Trait Implementations
impl Debug for TaskObj
[src]
impl Debug for TaskObj
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Send for TaskObj
[src]
impl Send for TaskObj
impl Future for TaskObj
[src]
impl Future for TaskObj
type Output = ()
🔬 This is a nightly-only experimental API. (futures_api
#50547)
futures in libcore are unstable
The result of the Future
.
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<()>
[src]
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<()>
🔬 This is a nightly-only experimental API. (futures_api
#50547)
futures in libcore are unstable
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
impl Drop for TaskObj
[src]
impl Drop for TaskObj