]> code.octet-stream.net Git - netwatcher/blob - src/watch_mac.rs
Fix up deps for Linux
[netwatcher] / src / watch_mac.rs
1 use crate::Update;
2
3 pub(crate) struct WatchHandle;
4
5 pub(crate) fn watch_interfaces<F: FnMut(Update) + 'static>(
6 callback: F,
7 ) -> Result<WatchHandle, Error> {
8 // stop current worker thread
9 // post this into a thread that will use it
10 drop(callback);
11 Ok(WatchHandle)
12 }