impl Send for Connection

This commit is contained in:
Nolan Darilek 2019-08-31 09:44:01 -05:00
parent 87018e0e83
commit 96cd1e9553

View File

@ -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();