// devela::work::reexports
//
//! Reexported items.
//
use crate::code::reexport;
/* future */
reexport! { rust: core::future,
doc: "A future which never resolves, representing a computation that never finishes.",
@Pending as FuturePending
}
reexport! { rust: core::future,
doc: "A Future that wraps a function returning [`TaskPoll`][crate::work::TaskPoll].",
@PollFn as FuturePollFn
}
reexport! { rust: core::future,
doc: "A future that is immediately ready with a value.",
@Ready as FutureReady
}
reexport! { rust: core::future,
doc: "An asynchronous computation obtained by use of
[`async`](https://doc.rust-lang.org/std/keyword.async.html).",
Future
}
reexport! { rust: core::future,
doc: "Conversion into a `Future`.",
IntoFuture
}
reexport! { rust: core::future,
doc: "Creates a [`FutureReady`].",
@ready as future_ready
}
reexport! { rust: core::future,
doc: "Creates a [`FuturePending`] future.",
@pending as future_pending
}
/* task */
reexport! { rust: core::task,
doc: "The context of an asynchronous task.",
@Context as TaskContext
}
reexport! { rust: core::task,
doc: "Allows the implementor of a task executor to create a [`TaskWaker`].",
@RawWaker as TaskRawWaker
}
reexport! { rust: core::task,
doc: "A virtual function pointer table that specifies the behavior of a [`TaskRawWaker`].",
@RawWakerVTable as TaskRawWakerVTable
}
reexport! { rust: core::task,
doc: "A handle for waking up a task by notifying its executor that it is ready to be run.",
@Waker as TaskWaker
}
reexport! { rust: core::task,
doc: "Indicates whether a value is ready or if the current task is still pending.",
@Poll as TaskPoll
}
reexport! { rust: core::task,
doc: "Extracts the successful type of a [`TaskPoll<T>`].",
@ready as task_ready
}
reexport! { rust: alloc::task,
doc: "The implementation of waking a task on an executor.",
@Wake as TaskWake
}