diff --git a/src/connect.rs b/src/connect.rs index dfb44de..5a083de 100644 --- a/src/connect.rs +++ b/src/connect.rs @@ -67,7 +67,7 @@ mod encryption { } pub fn wrap_stream(socket: S, domain: String, mode: Mode) - -> Box, Error=Error> + Send> + -> Box, Error=Error> + Send> where S: 'static + AsyncRead + AsyncWrite + Send, { @@ -123,7 +123,7 @@ fn domain(request: &Request) -> Result { /// Creates a WebSocket handshake from a request and a stream, /// upgrading the stream to TLS if required. pub fn client_async_tls(request: R, stream: S) - -> Box>, Response), Error=Error> + Send> + -> Box>, Response), Error=Error> + Send> where R: Into>, S: 'static + AsyncRead + AsyncWrite + NoDelay + Send, @@ -152,7 +152,7 @@ where /// Connect to a given URL. pub fn connect_async(request: R) - -> Box>, Response), Error=Error> + Send> + -> Box>, Response), Error=Error> + Send> where R: Into> {