How to deal with raw pointers that is not Send? #195
Unanswered
cenwangumass
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Just make your unsafe impl Send for Model {} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to spawn multiple actors where each of them holds a
type State = Model
. However, it is currently complain that a field of Model does not implement Send. In fact this field is a Rust struct contains a raw pointer from a C lib. What should I do in this case?Beta Was this translation helpful? Give feedback.
All reactions