We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ce61c0 commit a2b21e5Copy full SHA for a2b21e5
src/libcore/task/wake.rs
@@ -13,6 +13,7 @@
13
issue = "50547")]
14
15
use fmt;
16
+use marker::Unpin;
17
use ptr::NonNull;
18
19
/// A `Waker` is a handle for waking up a task by notifying its executor that it
@@ -25,6 +26,7 @@ pub struct Waker {
25
26
inner: NonNull<UnsafeWake>,
27
}
28
29
+impl Unpin for Waker {}
30
unsafe impl Send for Waker {}
31
unsafe impl Sync for Waker {}
32
@@ -99,6 +101,7 @@ pub struct LocalWaker {
99
101
100
102
103
104
+impl Unpin for LocalWaker {}
105
impl !Send for LocalWaker {}
106
impl !Sync for LocalWaker {}
107
0 commit comments