File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ struct Node<T> {
72
72
/// The multi-producer single-consumer structure. This is not cloneable, but it
73
73
/// may be safely shared so long as it is guaranteed that there is only one
74
74
/// popper at a time (many pushers are allowed).
75
- pub struct Queue < T > {
75
+ pub struct Queue < T : Send > {
76
76
head : AtomicPtr < Node < T > > ,
77
77
tail : UnsafeCell < * mut Node < T > > ,
78
78
}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const MAX_STEALS: isize = 5;
40
40
#[ cfg( not( test) ) ]
41
41
const MAX_STEALS : isize = 1 << 20 ;
42
42
43
- pub struct Packet < T > {
43
+ pub struct Packet < T : Send > {
44
44
queue : mpsc:: Queue < T > ,
45
45
cnt : AtomicIsize , // How many items are on this channel
46
46
steals : isize , // How many times has a port received without blocking?
You can’t perform that action at this time.
0 commit comments