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 TaskObjpub fn from_poll_task<T: UnsafePoll>(t: T) -> TaskObj[src]
pub fn from_poll_task<T: UnsafePoll>(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.
pub fn poll_task(&mut self, cx: &mut Context) -> Poll<()>[src]
pub fn poll_task(&mut self, cx: &mut Context) -> Poll<()>🔬 This is a nightly-only experimental API. (futures_api #50547)
futures in libcore are unstable
Poll the task.
The semantics here are identical to that for futures, but unlike
futures only an &mut self reference is needed here.