/// The last result that we captured, for diffing
prev_list: List,
/// User's callback
- cb: Box<dyn FnMut(Update) + 'static>,
+ cb: Box<dyn FnMut(Update) + Send + 'static>,
}
pub(crate) struct WatchHandle {
}
}
-pub(crate) fn watch_interfaces<F: FnMut(Update) + 'static>(
+pub(crate) fn watch_interfaces<F: FnMut(Update) + Send + 'static>(
callback: F,
) -> Result<WatchHandle, Error> {
let state = Box::pin(Mutex::new(WatchState {