Packetizer is fully generic over the underlying transport. However, ZooKeeper is not (it requires tokio::net::TcpStream for connect). We should use the ZooKeeperTransport trait to bring all network connectivity things into Packetizer::new (including the handshake, which can then be reused for session re-establishment).
Packetizeris fully generic over the underlying transport. However,ZooKeeperis not (it requirestokio::net::TcpStreamforconnect). We should use theZooKeeperTransporttrait to bring all network connectivity things intoPacketizer::new(including the handshake, which can then be reused for session re-establishment).