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 tlstokio-net
: Implementations for tokio socket types (default)rt
: Features that depend on the tokio runtime, such asSpawningHandshakes
Re-exports§
pub use tokio_native_tls as native_tls;
pub use tokio_openssl as openssl;
pub use tokio_rustls as rustls;
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§
- Default number of connections to accept in a batch before trying to
- Default timeout for the TLS handshake.
Traits§
- Asynchronously accept connections.
- Trait for TLS implementation.
Functions§
- Create a new Builder for a TlsListener