How to create a polymorphic type for UnixStream and TcpStream

后端 未结 0 1938
梦谈多话
梦谈多话 2021-01-31 06:44

I have a struct called Connection that receives either a tokio::net::TcpStream or a tokio::net::UnixStream to talk to a remote server. Given that Rust

相关标签:
回答
  • 消灭零回复
提交回复
热议问题