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
use Future;
use Pin;
/// Marker for coroutines that are not `Send`.
///
/// This is the default locality for [`Co`](crate::coroutine::Co).
;
/// Marker for coroutines that are `Send`.
///
/// Use this as the third type parameter of [`Co`](crate::coroutine::Co) to make the
/// coroutine `Send`, allowing it to be used with `tokio::spawn` and other
/// multi-threaded executors.
;
/// Sealed trait that controls whether a [`Co`](crate::coroutine::Co) coroutine is `Send`.
///
/// This trait is sealed and cannot be implemented outside of this crate.
/// The only valid implementations are [`Local`] and [`Sendable`].