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

wechaty-puppet compile failed #26

Open
Tom-Plants opened this issue Oct 16, 2023 · 0 comments
Open

wechaty-puppet compile failed #26

Tom-Plants opened this issue Oct 16, 2023 · 0 comments

Comments

@Tom-Plants
Copy link

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,
| ^^^^^^^^^^^^^^^^^^^^^^ the trait Message is not implemented for PuppetEvent
|
= help: the following other types implement trait Message:
Arc
Box
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
Box
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 for PuppetInner {
| ^^^^^^^^^^^^^^^^^^ the trait Message is not implemented for Subscribe
|
= help: the following other types implement trait Message:
Arc
Box
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 for PuppetInner {
| ^^^^^^^^^^^^^^^^^^^^ the trait Message is not implemented for UnSubscribe
|
= help: the following other types implement trait Message:
Arc
Box
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 for PuppetInner {
| ^^^^^^^^^^^^^^^^^^^^ the trait Message is not implemented for PuppetEvent
|
= help: the following other types implement trait Message:
Arc
Box
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
Box
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 {
| ^^^^^^^^^^^^^^^^^^^^^^ the trait Message is not implemented for PuppetEvent
|
= help: the following other types implement trait Message:
Arc
Box
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 {
| ^^^^^^^^^^^^^^^^^^^^ the trait Message is not implemented for Subscribe
|
= help: the following other types implement trait Message:
Arc
Box
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 {
| ^^^^^^^^^^^^^^^^^^^^^^ the trait Message is not implemented for UnSubscribe
|
= help: the following other types implement trait Message:
Arc
Box
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant