You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Linux and macOS, nusb::hotplug::HotplugWatch is Send which makes it easy to use things like tokio::spawn for a hotplug task.
On Windows, because pointers are not Send and the backend implementation uses a Box split into a raw pointer, this doesn't hold.
Would it make sense to manually implement Send on WindowsHotplugWatch given that it seems fine to send between threads (especially given Box implements Send)?
The text was updated successfully, but these errors were encountered:
On Linux and macOS,
nusb::hotplug::HotplugWatch
isSend
which makes it easy to use things liketokio::spawn
for a hotplug task.On Windows, because pointers are not
Send
and the backend implementation uses aBox
split into a raw pointer, this doesn't hold.Would it make sense to manually implement
Send
onWindowsHotplugWatch
given that it seems fine to send between threads (especially givenBox
implementsSend
)?The text was updated successfully, but these errors were encountered: