Replies: 2 comments 1 reply
-
Hmm, so seems that One way is to add some unsafe wrapper, e.g. There is another way. You may create a separate thread, and do all your work on that single thread from beginning to the end. This approach is a bit like the classical event loop things (e.g. you know, the android main thread even loop, the ios one, the flutter engine one, ...).
Maybe try to use For future readers: Context - #1784 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer, I am going to try to investigate more. |
Beta Was this translation helpful? Give feedback.
-
Hello, I am asking for help to generate the bindings for flutter rust bridge in my code that uses the windows crate https://crates.io/crates/windows, I was advised to wrap it using a mutex. I tried to implement it:
But, when I compile it, I still get the same error:
and
Trait
SseEncodeis not implemented for
Error[E0277]
I investigated and I found that it is needed to type
unsafe impl Send for MEMORY_BASIC_INFORMATION
,but I get another error that I can´t do that because it is an external crate.
How could I fix it?
Beta Was this translation helpful? Give feedback.
All reactions