pub fn from_std(stream: net::TcpStream, handle: &Handle)
        -> io::Result<TcpStream>
    {
        let inner = mio::net::TcpStream::from_stream(stream)?;
        Ok(TcpStream {
            io: try!(PollEvented::new(inner, handle)),
        })
    }
/// Create a new `TcpStream` from a `net::TcpStream`.
///
/// This function will convert a TCP stream created by the standard library
/// to a TCP stream ready to be used with the provided event loop handle.
/// The stream returned is associated with the event loop and ready to
/// perform I/O.
Create a new `TcpStream` from a `net::TcpStream`.
This function will convert a TCP stream created by the standard library
to a TCP stream ready to be used with the provided event loop handle.
The stream returned is associated with the event loop and ready to
perform I/O.
Create a new ` TcpStream ` from a ` net :: TcpStream ` . This function will convert a TCP stream created by the standard library to a TCP stream ready to be used with the provided event loop handle . The stream returned is associated with the event loop and ready to perform I / O .
pub fn from_std(stream: net::TcpStream, handle: &Handle)
        -> io::Result<TcpStream>
    {
        let inner = mio::net::TcpStream::from_stream(stream)?;
        Ok(TcpStream {
            io: try!(PollEvented::new(inner, handle)),
        })
    }
pub fn from_std ( stream : net :: TcpStream , handle : & Handle ) -> io :: Result < TcpStream > { let inner = mio :: net :: TcpStream :: from_stream ( stream ) ? ; Ok ( TcpStream { io : try ! ( PollEvented new ( inner handle ) ) , } ) }
Create a new `TcpStream` from a `net::TcpStream`.
Create a new ` TcpStream ` from a ` net :: TcpStream ` .
stream
net::TcpStream
handle
&Handle
stream
net::TcpStream
handle
&Handle