Crate tls_listener

source ·
Expand description

Async TLS listener

This library is intended to automatically initiate a TLS connection for each new connection in a source of new streams (such as a listening TCP or unix domain socket).

§Features:

  • rustls: Support the tokio-rustls backend for tls (default)
  • native-tls: support the tokio-native-tls backend for tls
  • tokio-net: Implementations for tokio socket types (default)
  • rt: Features that depend on the tokio runtime, such as SpawningHandshakes

Re-exports§

Structs§

  • Builder for TlsListener.
  • Convert an AsyncTls into one that will spawn a new task for each new connection.
  • Wraps a Stream of connections (such as a TCP listener) so that each connection is itself encrypted using TLS.

Enums§

  • Wraps errors from either the listener or the TLS Acceptor

Constants§

Traits§

Functions§

  • Create a new Builder for a TlsListener