|
@ -22,8 +22,7 @@ impl<S, R> Client<S, R> where |
|
|
S: SendServerPacket + std::fmt::Debug,
|
|
|
S: SendServerPacket + std::fmt::Debug,
|
|
|
R: RecvServerPacket + std::fmt::Debug,
|
|
|
R: RecvServerPacket + std::fmt::Debug,
|
|
|
{
|
|
|
{
|
|
|
pub fn new(id: ClientId, socket: mio::tcp::TcpStream) -> Client<S, R>
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
pub fn new(id: ClientId, socket: mio::tcp::TcpStream) -> Client<S, R> {
|
|
|
Client {
|
|
|
Client {
|
|
|
id: id,
|
|
|
id: id,
|
|
|
running: true,
|
|
|
running: true,
|
|
|