Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以TcpListener在多个 mioPoll对象上注册相同的对象(Poll多线程服务器的每个线程一个)吗?
TcpListener
Poll
当我尝试时,我收到错误:
线程'main'在'调用Result::unwrap()一个Err 值时惊慌失措:错误{repr:自定义(自定义{种类:其他,错误:StringError(“套接字已注册”)})}',src/libcore/result.rs:788
Result::unwrap()
Err
这是预期的行为吗?