X-Git-Url: https://code.octet-stream.net/netwatcher/blobdiff_plain/1c34fe3947aaf8af2d773d59bdebf19e17d78527..9ea683eddb05362f02bca60e4337955dfc5871dc:/src/watch_mac.rs?ds=sidebyside diff --git a/src/watch_mac.rs b/src/watch_mac.rs index 547db48..96e344b 100644 --- a/src/watch_mac.rs +++ b/src/watch_mac.rs @@ -1,10 +1,12 @@ use crate::Update; -pub struct WatchHandle; +pub(crate) struct WatchHandle; -pub fn watch_interfaces(callback: F) -> WatchHandle { +pub(crate) fn watch_interfaces( + callback: F, +) -> Result { // stop current worker thread // post this into a thread that will use it drop(callback); - WatchHandle + Ok(WatchHandle) }