]> code.octet-stream.net Git - netwatcher/blobdiff - src/lib.rs
Make watching work on Linux
[netwatcher] / src / lib.rs
index 7a8298ef647be7e99b178e97dcde113234607661..69de586c46db24fc7cf395107661093d569ed2f5 100644 (file)
@@ -145,6 +145,6 @@ pub fn list_interfaces() -> Result<HashMap<IfIndex, Interface>, Error> {
 /// 
 /// The callback will fire once immediately with an initial interface list, and a diff as if
 /// there were originally no interfaces present.
-pub fn watch_interfaces<F: FnMut(Update) + 'static>(callback: F) -> Result<WatchHandle, Error> {
+pub fn watch_interfaces<F: FnMut(Update) + Send + 'static>(callback: F) -> Result<WatchHandle, Error> {
     watch::watch_interfaces(callback).map(|handle| WatchHandle { _inner: handle })
 }