Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example is not working or outdated. Error in the source code, Hands-On-Microservices-with-Rust/Chapter12 #26

Open
vsilent opened this issue Nov 10, 2020 · 1 comment

Comments

@vsilent
Copy link

vsilent commented Nov 10, 2020

Hands-On-Microservices-with-Rust/Chapter12

2 | use actix::fut::wrap_future;
  |     ^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

error[E0277]: the trait bound `queue_actor::QueueActor<T>: actix::Actor` is not satisfied
  --> src/queue_actor.rs:41:59
   |
41 |     pub fn new(handler: T, mut sys: &mut SystemRunner) -> Result<Addr<Self>, Error> {
   |                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `actix::Actor` is not implemented for `queue_actor::QueueActor<T>`
   | 
  :::~l/.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`


@vsilent
Copy link
Author

vsilent commented Nov 10, 2020

Additionally,
Screen Shot 2020-11-10 at 6 03 46 PM

@vsilent vsilent changed the title Error in the source code, Hands-On-Microservices-with-Rust/Chapter12 Example is not working or outdated. Error in the source code, Hands-On-Microservices-with-Rust/Chapter12 Nov 10, 2020
@AurobindoKar AurobindoKar reopened this Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants