PacktPublishing / Hands-On-Microservices-with-Rust

Hands-On Microservices with Rust 2018, published by Packt
MIT License
357 stars 116 forks source link

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

Open vsilent opened 3 years ago

vsilent commented 3 years ago

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 commented 3 years ago

Additionally, [

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

](url)