diff --git a/src/lib.rs b/src/lib.rs index 8513726..15fe697 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,6 +2,7 @@ extern crate speech_dispatcher_sys; use std::ffi::{CStr, CString}; +use std::marker::Send; use speech_dispatcher_sys::*; @@ -503,6 +504,9 @@ impl Connection { } +unsafe impl Send for Connection { +} + impl Drop for Connection { fn drop(&mut self) { self.close();