impl Send for Connection
This commit is contained in:
parent
87018e0e83
commit
96cd1e9553
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user