Crate mz_server_core

Source
Expand description

Methods common to servers listening for TCP connections.

Structs§

Connection
A wrapper around a TcpStream that can identify a connection across processes.
ConnectionUuidHandle
A handle that permits getting and setting the UUID for a Connection.
ListenerHandle
A handle to a listener created by listen.
ReloadingSslContext
An SslContext whose inner value can be updated.
ReloadingTlsConfig
Configures a server’s TLS encryption and authentication with reloading.
ServeConfig
Configuration for serve.
ServeDyncfg
Dynamic configuration for ServeConfig.
TlsCertConfig
Configures TLS encryption for connections.
TlsCliArgs
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§

ConnectionStream
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§

ConnectionHandler
A future that handles a connection.
ReloadTrigger