Whenever trying to compile and run it, you get the following error:
error[E0277]: the trait bound `server::MppServer: actix::Actor` is not satisfied
--> src/session/ws_session.rs:18:22
|
18 | pub(crate) addr: Addr<server::MppServer>,
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `actix::Actor` is not implemented for `server::MppServer`
|
::: /workspace/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-0.10.0/src/address/mod.rs:72:20
|
72 | pub struct Addr<A: Actor> {
| ----- required by this bound in `actix::Addr`
error[E0277]: the trait bound `server::MppServer: actix::Actor` is not satisfied
--> src/main.rs:45:10
|
45 | srv: web::Data<Addr<server::MppServer>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `actix::Actor` is not implemented for `server::MppServer`
|
::: /workspace/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-0.10.0/src/address/mod.rs:72:20
|
72 | pub struct Addr<A: Actor> {
| ----- required by this bound in `actix::Addr`
error: aborting due to 2 previous errors; 4 warnings emitted
For more information about this error, try `rustc --explain E0277`.
error: could not compile `mpp-server`.
Whenever trying to compile and run it, you get the following error: