]> code.octet-stream.net Git - netwatcher/blobdiff - src/watch_mac.rs
Make example program test dropping the WatchHandle
[netwatcher] / src / watch_mac.rs
index 42e7217ad46a09f33c1ce9277da588ce6ac283e9..c44169cf25a28b9fc937ecafd3865bc2e76bba35 100644 (file)
@@ -22,6 +22,8 @@ unsafe impl objc2::Encode for NwPath {
     const ENCODING: Encoding = usize::ENCODING;
 }
 
     const ENCODING: Encoding = usize::ENCODING;
 }
 
+unsafe impl Send for WatchHandle {}
+
 #[link(name = "Network", kind = "framework")]
 extern "C" {
     fn nw_path_monitor_create() -> NwPathMonitorT;
 #[link(name = "Network", kind = "framework")]
 extern "C" {
     fn nw_path_monitor_create() -> NwPathMonitorT;