pub fn new(stream: TcpStream, token: Token) -> Connection {
        Connection {
            _token: token,
            _stream: stream,
            _send_queue: RwLock::new(vec![]),
            _read_next: 0,
            _write_next: false,
        }
    }
/*
     * a connection means a tcpstream,  
     * and the token needed by the mio must be unique 
     * it 's managed by the server context.
     */
a connection means a tcpstream,
and the token needed by the mio must be unique
it 's managed by the server context.
a connection means a tcpstream and the token needed by the mio must be unique it ' s managed by the server context .
pub fn new(stream: TcpStream, token: Token) -> Connection {
        Connection {
            _token: token,
            _stream: stream,
            _send_queue: RwLock::new(vec![]),
            _read_next: 0,
            _write_next: false,
        }
    }
pub fn new ( stream : TcpStream , token : Token ) -> Connection { Connection { _token : token , _stream : stream , _send_queue : RwLock :: new ( vec ! [ ] ) , _read_next : 0 , _write_next : false , } }
a connection means a tcpstream,
 and the token needed by the mio must be unique
 it 's managed by the server context.
a connection means a tcpstream and the token needed by the mio must be unique it ' s managed by the server context .
stream
TcpStream
token
Token
stream
TcpStream
token
Token