Module stream

Module stream 

Source
Expand description

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 Read + Write traits.

Enums§

Mode
Stream mode, either plain TCP or TLS.
SimplifiedStream
A simplified stream abstraction that might be protected with TLS.

Traits§

NoDelay
Trait to switch TCP_NODELAY.