Comments (4)
What is the problem with this? You're failing to compile?
from ractor.
Yes. I missed a picture of it. Let me put it here.
error[E0061]: this enum variant takes 2 arguments but 3 arguments were supplied
--> src/http_cli.rs:85:21
|
85 | call!(me, HttpCliCommand::Retry, *cmd, time);
| ----------^^^^^^^^^^^^^^^^^^^^^------------- unexpected argument of type `RpcReplyPort<_>`
|
note: tuple variant defined here
--> src/http_cli.rs:104:3
|
104 | Retry(Box<HttpCliCommand>, u8),
| ^^^^^
from ractor.
That's because the call!
macro is expecting the last argument of the tuple of arguments to be the reply channel to send the reply on. If you actually want this pattern to work, you will have to handle piping the reply channel from the boxed internal struct. Theoretically the way you've written it you could have retry nested n-deep and there's no way for the macro to desugar that.
Essentially the macro won't work here and there isn't a solution to make it work. You'll have to do it by hand using ActorRef<_>::call
from ractor.
Sorry, my bad. I actually need to use .send_massage
instead of call!
macro. Thanks for your reply.
from ractor.
Related Issues (20)
- How to communicate between local actors and remote actors across hosts using ractor? HOT 1
- quickstart bugs HOT 1
- protobuf-src build requires autotools, which is not available on windows (by default) HOT 4
- bug in monte_carlo example HOT 2
- SpawnErr is misleading HOT 3
- Bidirectional linking can cause stack overflow on actor shutdown
- `CallResult` should return errors that occured handling the message HOT 2
- Add `Scope`-> `GroupName` mapping HOT 3
- Mod Driver Aplikasi Fake GPS HOT 1
- About section needs update for async-std
- Support `async fn` in traits. HOT 1
- Request for TCP Echo Server Example with TcpListener and TcpStream as Actors HOT 1
- Add support to downcast a BoxedMessage to get a reference to it's wrapped type without consuming it HOT 4
- When panic=abort is on, panic is not captured. HOT 1
- Lifetimes do not match method in trait HOT 2
- Subscriber-Driven OutputPort Subscriptions
- Enhancing OutputPort Backpressure Handling via RecvError::Lagged Management and Buffer Configurability HOT 6
- `post_stop` of children are being called when supervisor fails. HOT 1
- Not depend protobuf-src on windows HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ractor.