Trait bound not satisfied for MaybeTlsStream in tokio-tungstenite
I’m trying to build a struct that handles async websocket communication. I’m working on getting the connection set up and, as part of that, I’m using tokio_tungstenite::connect::connect_async()
. I want to store its returned value as a field in the struct I’m working on.
Trait bound not satisfied for MaybeTlsStream in tokio-tungstenite
I’m trying to build a struct that handles async websocket communication. I’m working on getting the connection set up and, as part of that, I’m using tokio_tungstenite::connect::connect_async()
. I want to store its returned value as a field in the struct I’m working on.
How can I store the result of tokio_tungstenite::connect::connect_async() as a field of a struct?
I’m trying to build a struct that handles async websocket communication. I’m working on getting the connection set up and, as part of that, I’m using tokio_tungstenite::connect::connect_async()
. I want to store its returned value as a field in the struct I’m working on.