Implement Send for IOStreamAsyncReadWrite

pull/37/head
Sebastian Dröge 5 years ago
parent 2f82c2df2e
commit 14e0dd481a
  1. 2
      src/gio.rs
  2. 2
      src/lib.rs

@ -69,6 +69,8 @@ pub struct IOStreamAsyncReadWrite<T: IsA<gio::IOStream>> {
write: gio::OutputStreamAsyncWrite<gio::PollableOutputStream>,
}
unsafe impl<T: IsA<gio::IOStream>> Send for IOStreamAsyncReadWrite<T> {}
impl<T: IsA<gio::IOStream>> IOStreamAsyncReadWrite<T> {
/// Create a new `gio::IOStream` adapter
fn new(stream: T) -> Result<IOStreamAsyncReadWrite<T>, T> {

@ -31,7 +31,7 @@
unused_imports,
unused_import_braces
)]
#![forbid(unsafe_code)]
#![cfg_attr(not(feature = "gio-runtime"), forbid(unsafe_code))]
pub use tungstenite;

Loading…
Cancel
Save