rust-wechaty icon indicating copy to clipboard operation
rust-wechaty copied to clipboard

wechaty-puppet compile failed

Open Tom-Plants opened this issue 2 years ago • 0 comments

Compiling wechaty_puppet v0.1.0-beta.1 (C:\Users\assembly\Desktop\rust-wechaty\wechaty-puppet) error: Expect an attribute rtype --> wechaty-puppet\src\events.rs:22:24 | 22 | #[derive(Debug, Clone, Message)] | ^^^^^^^ | = note: this error originates in the derive macro Message (in Nightly builds, run with -Z macro-backtrace for more info)

error: Expect an attribute rtype --> wechaty-puppet\src\puppet.rs:43:10 | 43 | #[derive(Message)] | ^^^^^^^ | = note: this error originates in the derive macro Message (in Nightly builds, run with -Z macro-backtrace for more info)

error: Expect an attribute rtype --> wechaty-puppet\src\puppet.rs:51:10 | 51 | #[derive(Message)] | ^^^^^^^ | = note: this error originates in the derive macro Message (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound PuppetEvent: Message is not satisfied --> wechaty-puppet\src\puppet.rs:46:15 | 46 | pub addr: Recipient<PuppetEvent>, | ^^^^^^^^^^^^^^^^^^^^^^ the trait Message is not implemented for PuppetEvent | = help: the following other types implement trait Message: Arc<M> Box<M> note: required by a bound in Recipient --> C:\Users\assembly.cargo\registry\src\github.com-1ecc6299db9ec823\actix-0.12.0\src\address\mod.rs:231:25 | 231 | pub struct Recipient<M: Message> | ^^^^^^^ required by this bound in Recipient

error[E0277]: the trait bound PuppetEvent: Message is not satisfied --> wechaty-puppet\src\puppet.rs:60:23 | 60 | dong_subscribers: SubscribersPtr, | ^^^^^^^^^^^^^^ the trait Message is not implemented for PuppetEvent | = help: the following other types implement trait Message: Arc<M> Box<M> note: required by a bound in Recipient --> C:\Users\assembly.cargo\registry\src\github.com-1ecc6299db9ec823\actix-0.12.0\src\address\mod.rs:231:25 | 231 | pub struct Recipient<M: Message> | ^^^^^^^ required by this bound in Recipient

error[E0277]: the trait bound Subscribe: Message is not satisfied --> wechaty-puppet\src\puppet.rs:117:6 | 117 | impl Handler<Subscribe> for PuppetInner { | ^^^^^^^^^^^^^^^^^^ the trait Message is not implemented for Subscribe | = help: the following other types implement trait Message: Arc<M> Box<M> note: required by a bound in Handler --> C:\Users\assembly.cargo\registry\src\github.com-1ecc6299db9ec823\actix-0.12.0\src\handler.rs:19:8 | 19 | M: Message, | ^^^^^^^ required by this bound in Handler

error[E0277]: the trait bound UnSubscribe: Message is not satisfied --> wechaty-puppet\src\puppet.rs:172:6 | 172 | impl Handler<UnSubscribe> for PuppetInner { | ^^^^^^^^^^^^^^^^^^^^ the trait Message is not implemented for UnSubscribe | = help: the following other types implement trait Message: Arc<M> Box<M> note: required by a bound in Handler --> C:\Users\assembly.cargo\registry\src\github.com-1ecc6299db9ec823\actix-0.12.0\src\handler.rs:19:8 | 19 | M: Message, | ^^^^^^^ required by this bound in Handler

error[E0277]: the trait bound PuppetEvent: Message is not satisfied --> wechaty-puppet\src\puppet.rs:227:6 | 227 | impl Handler<PuppetEvent> for PuppetInner { | ^^^^^^^^^^^^^^^^^^^^ the trait Message is not implemented for PuppetEvent | = help: the following other types implement trait Message: Arc<M> Box<M> note: required by a bound in Handler --> C:\Users\assembly.cargo\registry\src\github.com-1ecc6299db9ec823\actix-0.12.0\src\handler.rs:19:8 | 19 | M: Message, | ^^^^^^^ required by this bound in Handler

error[E0277]: the trait bound PuppetEvent: Message is not satisfied --> wechaty-puppet\src\puppet.rs:96:53 | 96 | fn notify(&self, msg: PuppetEvent, subscribers: SubscribersPtr) { | ^^^^^^^^^^^^^^ the trait Message is not implemented for PuppetEvent | = help: the following other types implement trait Message: Arc<M> Box<M> note: required by a bound in Recipient --> C:\Users\assembly.cargo\registry\src\github.com-1ecc6299db9ec823\actix-0.12.0\src\address\mod.rs:231:25 | 231 | pub struct Recipient<M: Message> | ^^^^^^^ required by this bound in Recipient

error[E0277]: the trait bound PuppetEvent: Message is not satisfied --> wechaty-puppet\src\puppet.rs:271:32 | 271 | pub fn self_addr(&self) -> Recipient<PuppetEvent> { | ^^^^^^^^^^^^^^^^^^^^^^ the trait Message is not implemented for PuppetEvent | = help: the following other types implement trait Message: Arc<M> Box<M> note: required by a bound in Recipient --> C:\Users\assembly.cargo\registry\src\github.com-1ecc6299db9ec823\actix-0.12.0\src\address\mod.rs:231:25 | 231 | pub struct Recipient<M: Message> | ^^^^^^^ required by this bound in Recipient

error[E0277]: the trait bound Subscribe: Message is not satisfied --> wechaty-puppet\src\puppet.rs:276:41 | 276 | pub fn get_subscribe_addr(&self) -> Recipient<Subscribe> { | ^^^^^^^^^^^^^^^^^^^^ the trait Message is not implemented for Subscribe | = help: the following other types implement trait Message: Arc<M> Box<M> note: required by a bound in Recipient --> C:\Users\assembly.cargo\registry\src\github.com-1ecc6299db9ec823\actix-0.12.0\src\address\mod.rs:231:25 | 231 | pub struct Recipient<M: Message> | ^^^^^^^ required by this bound in Recipient

error[E0277]: the trait bound UnSubscribe: Message is not satisfied --> wechaty-puppet\src\puppet.rs:281:43 | 281 | pub fn get_unsubscribe_addr(&self) -> Recipient<UnSubscribe> { | ^^^^^^^^^^^^^^^^^^^^^^ the trait Message is not implemented for UnSubscribe | = help: the following other types implement trait Message: Arc<M> Box<M> note: required by a bound in Recipient --> C:\Users\assembly.cargo\registry\src\github.com-1ecc6299db9ec823\actix-0.12.0\src\address\mod.rs:231:25 | 231 | pub struct Recipient<M: Message> | ^^^^^^^ required by this bound in Recipient

Tom-Plants avatar Oct 16 '23 07:10 Tom-Plants