-
Hi there, the examples at https://github.com/actix/examples/tree/master/websockets all use error[E0277]: the trait bound `MyWebSocket: actix::actor::Actor` is not satisfied
--> ui-prototype/src/main.rs:82:5
|
82 | type Context = ws::WebsocketContext<Self>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `actix::actor::Actor` is not implemented for `MyWebSocket`
|
::: /Users/coliny/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-actors-3.0.0/src/ws.rs:181:8
|
181 | A: Actor<Context = WebsocketContext<A>>,
| ------------------------------------ required by this bound in `WebsocketContext`
error[E0277]: the trait bound `MyWebSocket: actix::actor::Actor` is not satisfied
--> ui-prototype/src/main.rs:85:32
|
85 | fn started(&mut self, ctx: &mut Self::Context) {
| ^^^^^^^^^^^^^^^^^^ the trait `actix::actor::Actor` is not implemented for `MyWebSocket`
|
::: /Users/coliny/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-actors-3.0.0/src/ws.rs:181:8
|
181 | A: Actor<Context = WebsocketContext<A>>,
| ------------------------------------ required by this bound in `WebsocketContext`
error[E0277]: the trait bound `MyWebSocket: actix::actor::Actor` is not satisfied
--> ui-prototype/src/main.rs:92:76
|
92 | fn handle(&mut self, msg: Result<ws::Message, ws::ProtocolError>, ctx: &mut Self::Context) {
| ^^^^^^^^^^^^^^^^^^ the trait `actix::actor::Actor` is not implemented for `MyWebSocket`
|
::: /Users/coliny/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-actors-3.0.0/src/ws.rs:181:8
|
181 | A: Actor<Context = WebsocketContext<A>>,
| ------------------------------------ required by this bound in `WebsocketContext`
error[E0277]: the trait bound `MyWebSocket: actix::actor::Actor` is not satisfied
--> ui-prototype/src/main.rs:122:23
|
122 | fn hb(&self, ctx: &mut <Self as Actor>::Context) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `actix::actor::Actor` is not implemented for `MyWebSocket`
|
::: /Users/coliny/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-actors-3.0.0/src/ws.rs:181:8
|
181 | A: Actor<Context = WebsocketContext<A>>,
| ------------------------------------ required by this bound in `WebsocketContext` I had a look at the Are they incompatible and should I just stick with Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes they are incompatible. Upgrade paths will be documented after to Actix Web v4 stable release. As you pointed out, use 0.10 for now. |
Beta Was this translation helpful? Give feedback.
Yes they are incompatible. Upgrade paths will be documented after to Actix Web v4 stable release.
As you pointed out, use 0.10 for now.