Struct std::task::TaskObj [−][src]
pub struct TaskObj(_);
🔬 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 new<T>(t: T) -> TaskObj where
T: Send + UnsafeTask, [src]
pub fn new<T>(t: T) -> TaskObj where
T: Send + UnsafeTask, 🔬 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 Send for TaskObj[src]
impl Send for TaskObjimpl Future for TaskObj[src]
impl Future for TaskObjtype 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<TaskObj>, cx: &mut Context) -> Poll<()>[src]
fn poll(self: PinMut<TaskObj>, 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 Debug for TaskObj[src]
impl Debug for TaskObjfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl From<TaskObj> for LocalTaskObj[src]
impl From<TaskObj> for LocalTaskObjfn from(task: TaskObj) -> LocalTaskObj[src]
fn from(task: TaskObj) -> LocalTaskObjPerforms the conversion.
impl<F> From<Box<F>> for TaskObj where
F: 'static + Send + Future<Output = ()>, [src]
impl<F> From<Box<F>> for TaskObj where
F: 'static + Send + Future<Output = ()>, impl<F> From<PinBox<F>> for TaskObj where
F: 'static + Send + Future<Output = ()>, [src]
impl<F> From<PinBox<F>> for TaskObj where
F: 'static + Send + Future<Output = ()>,