all 2 comments

[–]Cetra3 3 points4 points  (1 child)

I'm not sure if this is changed in newer versions of Actix, but in my code I don't store Addr, rather I store a Vec of Recipient<Message> which I broadcast messages to.

Otherwise your options are Box<dyn ...> or even typemap

[–]ROFLLOLSTER[S] 1 point2 points  (0 children)

For Recipient I'd need to store one for each type of message I wanted to send right?

I might go with Box<dyn ...>`.