]>
code.octet-stream.net Git - netwatcher/blob - src/watch_mac.rs
547db4801fd2bd156e9cda7d0a0c7d37195a7650
3 pub struct WatchHandle
;
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