]> code.octet-stream.net Git - netwatcher/blob - src/watch_mac.rs
547db4801fd2bd156e9cda7d0a0c7d37195a7650
[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 }