pub enum WebSocketStreamType {
Client {
tx: AsyncRefCell<SplitSink<WebSocketStream<MaybeTlsStream<TcpStream>>, Message>>,
rx: AsyncRefCell<SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>>,
},
Server {
tx: AsyncRefCell<SplitSink<WebSocketStream<Pin<Box<dyn Upgraded>>>, Message>>,
rx: AsyncRefCell<SplitStream<WebSocketStream<Pin<Box<dyn Upgraded>>>>>,
},
}
Variants§
Client
Fields
§
tx: AsyncRefCell<SplitSink<WebSocketStream<MaybeTlsStream<TcpStream>>, Message>>
§
rx: AsyncRefCell<SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>>
Server
Fields
§
tx: AsyncRefCell<SplitSink<WebSocketStream<Pin<Box<dyn Upgraded>>>, Message>>
§
rx: AsyncRefCell<SplitStream<WebSocketStream<Pin<Box<dyn Upgraded>>>>>