Expand description
Methods common to servers listening for TCP connections.
Structs§
- Connection
- A wrapper around a
TcpStream
that can identify a connection across processes. - Connection
Uuid Handle - A handle that permits getting and setting the UUID for a
Connection
. - Listener
Handle - A handle to a listener created by
listen
. - Reloading
SslContext - An SslContext whose inner value can be updated.
- Reloading
TlsConfig - Configures a server’s TLS encryption and authentication with reloading.
- Serve
Config - Configuration for
serve
. - Serve
Dyncfg - Dynamic configuration for
ServeConfig
. - TlsCert
Config - Configures TLS encryption for connections.
- TlsCli
Args - Command line arguments for TLS.
- TlsConfig
- Configures a server’s TLS encryption and authentication.
Enums§
- TlsMode
- Specifies how strictly to enforce TLS encryption.
Constants§
- KEEPALIVE 🔒
- TCP keepalive settings. The idle time and interval match CockroachDB 0. The number of retries matches the Linux default.
Traits§
- Connection
Stream - A stream of incoming connections.
- Server
- A server handles incoming network connections.
Functions§
- cert_
reload_ never_ reload - Returns a ReloadTrigger that never triggers.
- default_
cert_ reload_ ticker - Returns a ReloadTrigger that triggers once per hour.
- listen
- Listens for incoming TCP connections on the specified address.
- serve
- Serves incoming TCP connections.
Type Aliases§
- Connection
Handler - A future that handles a connection.
- Reload
Trigger