diff --git a/wtransport/src/stream.rs b/wtransport/src/stream.rs index 40fae3c..3d1cf95 100644 --- a/wtransport/src/stream.rs +++ b/wtransport/src/stream.rs @@ -163,7 +163,7 @@ impl tokio::io::AsyncRead for RecvStream { } } -type DynFutureUniStream = dyn Future>; +type DynFutureUniStream = dyn Future> + Send + Sync; /// [`Future`] for an in-progress opening unidirectional stream. /// @@ -193,7 +193,8 @@ impl Future for OpeningUniStream { } } -type DynFutureBiStream = dyn Future>; +type DynFutureBiStream = + dyn Future> + Send + Sync; /// [`Future`] for an in-progress opening bidirectional stream. ///