]>
code.octet-stream.net Git - netwatcher/blob - src/watch_linux.rs
a987919360fc789c79a3478e19da048d9c47c963
4 pub(crate) struct WatchHandle
;
6 pub(crate) fn watch_interfaces
<F
: FnMut(Update
) + '
static>(
8 ) -> Result
<WatchHandle
, Error
> {
9 // stop current worker thread
10 // post this into a thread that will use it