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