tungstenite::tls::encryption::plain

Function wrap_stream

source
pub fn wrap_stream<S>(socket: S, mode: Mode) -> Result<MaybeTlsStream<S>>
where S: Read + Write,