devela/work/async/
reexports.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// 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
}