Currently the device callbacks require the Sync trait, but since the callback is cloned for each thread I believe this is unnecessary. Send and Clone seem sufficient.
The Sync trait makes it difficult to implement a pattern where, for example, one might use an mpsc::Sender to emit events from the callback.
Currently the device callbacks require the
Sync
trait, but since the callback is cloned for each thread I believe this is unnecessary.Send
andClone
seem sufficient.The
Sync
trait makes it difficult to implement a pattern where, for example, one might use anmpsc::Sender
to emit events from the callback.