From 96cd1e95534ee6f82e75b9aaf9811d4117b73d0b Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Sat, 31 Aug 2019 09:44:01 -0500 Subject: [PATCH] `impl Send for Connection` --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) 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();