use crate::Update;\r
\r
-pub struct WatchHandle;\r
+pub(crate) struct WatchHandle;\r
\r
-pub fn watch_interfaces<F: FnMut(Update)>(callback: F) -> WatchHandle {\r
+pub(crate) fn watch_interfaces<F: FnMut(Update) + 'static>(\r
+ callback: F,\r
+) -> Result<WatchHandle, Error> {\r
// stop current worker thread\r
// post this into a thread that will use it\r
drop(callback);\r
- WatchHandle\r
+ Ok(WatchHandle)\r
}\r