pub type DeviceChangedCallback = dyn FnMut() + Send + Sync + 'static;
User supplied callback called when the underlying device changed.