actix-web框架中websocket handler获取异步环境可调用self方法吗

📝

内容提要

代码如下 struct Ws; impl Ws{ ... } impl Actor for Ws { type Context = ws::WebsocketContext<Self>; } impl StreamHandler<Result<Message, ProtocolError>> for Ws { fn handle(&mut self, msg:...

🏷️

标签

➡️

继续阅读