mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
Make trait's impls consistent for unix/windows
This commit is contained in:
parent
11f71ec701
commit
1a73ccc8db
@ -117,6 +117,9 @@ pub struct UnixStream {
|
||||
write_deadline: u64,
|
||||
}
|
||||
|
||||
unsafe impl Send for UnixStream {}
|
||||
unsafe impl Sync for UnixStream {}
|
||||
|
||||
impl UnixStream {
|
||||
pub fn connect(addr: &CString,
|
||||
timeout: Option<u64>) -> IoResult<UnixStream> {
|
||||
@ -215,6 +218,7 @@ pub struct UnixListener {
|
||||
path: CString,
|
||||
}
|
||||
|
||||
unsafe impl Send for UnixListener {}
|
||||
unsafe impl Sync for UnixListener {}
|
||||
|
||||
impl UnixListener {
|
||||
@ -261,6 +265,7 @@ struct AcceptorInner {
|
||||
closed: atomic::AtomicBool,
|
||||
}
|
||||
|
||||
unsafe impl Send for AcceptorInner {}
|
||||
unsafe impl Sync for AcceptorInner {}
|
||||
|
||||
impl UnixAcceptor {
|
||||
|
Loading…
Reference in New Issue
Block a user