]> code.octet-stream.net Git - netwatcher/blob - src/watch_mac.rs
Split out list and watch implementations
[netwatcher] / src / watch_mac.rs
1 use crate::Update;
2
3 pub struct WatchHandle;
4
5 pub fn watch_interfaces<F: FnMut(Update)>(callback: F) -> WatchHandle {
6 // stop current worker thread
7 // post this into a thread that will use it
8 drop(callback);
9 WatchHandle
10 }