We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
T:Send
Queue<T>
Drop
1 parent 123b5c1 commit 5f57fd5Copy full SHA for 5f57fd5
src/libstd/sync/mpsc/spsc_queue.rs
@@ -57,7 +57,7 @@ struct Node<T> {
57
/// but it can be safely shared in an Arc if it is guaranteed that there
58
/// is only one popper and one pusher touching the queue at any one point in
59
/// time.
60
-pub struct Queue<T> {
+pub struct Queue<T: Send> {
61
// consumer fields
62
tail: UnsafeCell<*mut Node<T>>, // where to pop from
63
tail_prev: AtomicPtr<Node<T>>, // where to pop from
0 commit comments