Replies: 1 comment
-
I ended up extracting the the logic that incorporates the parameters outside of the EventStream macro. I'm not sure what the proper fix is, but this is what the chat example did and it allowed me to bypass the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having some difficulty getting the EventStream! macro to borrow parameters. I followed the documentation and included Event + _' but it's complaining that Event from EventStream! is not a trait. I wrote some sample code that just clones a string from a parameter. I'm newish to rust so I'm not the best with macros and lifetimes. Any help and explanation would be greatly appreciated!
The following is the error i receive:
Bonus points... I put a question on stackoverflow for this. https://stackoverflow.com/questions/69577423/cant-get-rockets-eventstream-to-work-with-borrowed-values
Beta Was this translation helpful? Give feedback.
All reactions