[][src]Module async_tungstenite::stream

Convenience wrapper for streams to switch between plain TCP and TLS at runtime.

There is no dependency on actual TLS implementations. Everything like native_tls or openssl will work as long as there is a TLS stream supporting standard AsyncRead + AsyncWrite traits.

Enums

Stream

Stream, either plain TCP or TLS.