Closed ghost closed 3 years ago
This struct definitely cannot implement Copy
. You have to use the sender in a different way.
Please send the code that produces the error (or ideally the whole project), otherwise we won't know where the problem is.
Sure. Here is the full code:
Oops, I completely missed the part of the example where it assigns back to send_sock
. Doing that fixed the issue.
I'm a Rust beginner so I may have missed something basic, but:
I'm using a different crate that gives me events in this format:
I would like to send the event data to the message queue, however if I try to use the
send_sock
inside the loop I get this error:I have tried wrapping it in an Arc but I get a similar error.
What am I missing here?