File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,9 @@ pub struct UnixStream {
214
214
write_deadline : u64 ,
215
215
}
216
216
217
+ unsafe impl Send for UnixStream { }
218
+ unsafe impl Sync for UnixStream { }
219
+
217
220
impl UnixStream {
218
221
fn try_connect ( p : * const u16 ) -> Option < libc:: HANDLE > {
219
222
// Note that most of this is lifted from the libuv implementation.
@@ -559,6 +562,7 @@ pub struct UnixListener {
559
562
name : CString ,
560
563
}
561
564
565
+ unsafe impl Send for UnixListener { }
562
566
unsafe impl Sync for UnixListener { }
563
567
564
568
impl UnixListener {
@@ -605,13 +609,15 @@ pub struct UnixAcceptor {
605
609
deadline : u64 ,
606
610
}
607
611
612
+ unsafe impl Send for UnixAcceptor { }
608
613
unsafe impl Sync for UnixAcceptor { }
609
614
610
615
struct AcceptorState {
611
616
abort : Event ,
612
617
closed : atomic:: AtomicBool ,
613
618
}
614
619
620
+ unsafe impl Send for AcceptorState { }
615
621
unsafe impl Sync for AcceptorState { }
616
622
617
623
impl UnixAcceptor {
You can’t perform that action at this time.
0 commit comments