You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
https://course.rs/basic/compound-type/enum.html#%E5%90%8C%E4%B8%80%E5%8C%96%E7%B1%BB%E5%9E%8B
没看明白怎么体现了同一化类型的?
另外:
上面定义的
s
变量后面就没使用了?WebSocket::from_raw_socket
这里的WebSocket是单独定义的一个结构体是吧?上面这三个
Websocket
(enum 后面的Websocket以及内部的两个Websocket)是一个类型吗? 具体是什么含义能更进一步解释吗?看上去很困惑。感谢。
Beta Was this translation helpful? Give feedback.
All reactions