native: clone/close_accept for win32 pipes

This commits takes a similar strategy to the previous commit to implement
close_accept and clone for the native win32 pipes implementation.

Closes #15595
This commit is contained in:
Alex Crichton
2014-07-15 12:42:40 -07:00
parent c301db20a4
commit fd763a5b1e
10 changed files with 117 additions and 48 deletions

View File

@@ -461,8 +461,7 @@ impl TcpAcceptor {
///
/// ```
/// # #![allow(experimental)]
/// use std::io::TcpListener;
/// use std::io::{Listener, Acceptor, TimedOut};
/// use std::io::{TcpListener, Listener, Acceptor, EndOfFile};
///
/// let mut a = TcpListener::bind("127.0.0.1", 8482).listen().unwrap();
/// let a2 = a.clone();