我正在努力建立连接,作为其中的一部分,我正在使用tokio_tungstenite::connect::connect_async()。我想将它的返回值作为字段存储在我正在处理的结构中。 我尝试了以下方法: use tokio_tungstenite::tungstenite::stream::MaybeTlsStream; use tokio_tungstenite::WebSocketStream; pub struct WrAsyncSocket { m_socket_st...
As withtungstenite-rsTLS is supported on all platforms usingnative-tlsorrustlsthrough feature flags:native-tls,rustls-tls-native-rootsorrustls-tls-webpki-rootsfeature flags. Neither is enabled by default. See theCargo.tomlfor more information. If you require support for secure WebSockets (wss:...
0.16.0 Add a function to allow to specify the TLS connector when using connect() like logic. Add support for choosing the right root certificates for the TLS. Change the behavior of the connect() so that it fails when using TLS without TLS feature. Do not project with Unpin. Update the...
As with tungstenite-rs TLS is supported on all platforms using native-tls or rustls through feature flags: native-tls, rustls-tls-native-roots or rustls-tls-webpki-roots feature flags. Neither is enabled by default. See the Cargo.toml for more information. If you require support for secure...
As withtungstenite-rsTLS is supported on all platforms usingnative-tlsorrustlsthrough feature flags:native-tls,rustls-tls-native-rootsorrustls-tls-webpki-rootsfeature flags. Neither is enabled by default. See theCargo.tomlfor more information. If you require support for secure WebSockets (wss:...