Skip to content

Store generic ActorRef #38

Answered by tqwewe
rubengrim asked this question in Q&A
Sep 8, 2024 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Very cool of you to be looking into the source code :)

I have realised that your requirements aren't really dependant on the new PR I mentioned. I believe all you needed was to specify the mailbox there too. A: Actor<Mailbox = BoundedMailbox<A>> + Message<SomeMessage>

The bounds required based on the current version of kameo are here:

kameo/src/request/ask.rs

Lines 374 to 389 in 6f7b6f7

impl<A, M>
AskRequest<
LocalAskRequest<A, BoundedMailbox<A>>,
BoundedMailbox<A>,
M,
WithoutRequestTimeout,
WithoutRequestTimeout,
>
where
A: Actor<Mailbox = BoundedMailbox<A>> + Message<M>,
M: 'static,
{
/// Sends the message, waiting …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@rubengrim
Comment options

@tqwewe
Comment options

Answer selected by rubengrim
@rubengrim
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants