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 tlshyper-h1
: hyper support with http/1hyper-h2
: hyper support with http/2tokio-net
: Implementations for tokio socket types (default)
Structs
Builder for TlsListener
.
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 timeout for the TLS handshake.
Default number of concurrent handshakes
Traits
Asynchronously accept connections.
Trait for TLS implementation.
Functions
Create a new Builder for a TlsListener