Skip to main content

Module server

Module server 

Source
Expand description

General-purpose TCP server APIs.

Modules§

openssl
TLS services and I/O filters backed by OpenSSL.
rustls
TLS services and filters backed by rustls.

Structs§

AcceptLoop
Accept loop for network listeners.
AcceptNotify
Handle for sending commands to the accept loop.
Connection
Accepted connection dispatched to a worker.
ListenerMetrics
Metrics of a single listener.
NoConfig
Application configuration that creates unit state.
RuntimeMetrics
Runtime statistics of a worker.
ServerBuilder
Builder for a network server.
ServerMetrics
Snapshot of server metrics.
ServiceConfig
Listener and worker configuration used by ServerBuilder::configure.
ServiceRuntime
Per-worker runtime used to attach services to named listeners.
StreamServer
Worker configuration for network servers.
TestServer
Test server controller.
TestServerBuilder
Builder for a single-worker test server.
TlsConfig
Handshake timeout shared by TLS acceptor and connector services.
Token
Identifier assigned to a registered listener.
WorkerMetrics
Metrics of a single worker.

Enums§

AcceptorCommand
Command sent to the accept loop.
Affinity
CPU affinity of worker threads.
LoadBalancing
How the server distributes items between workers.
ServerStatus
Server status.
Stream
Accepted socket stream.
TlsError
Distinguishes a TLS failure from an application service failure.

Traits§

ServerAppConfig
Creates application state independently for each server worker.

Functions§

bind_addr
Binds TCP listeners for every address resolved from addr.
build
Creates a server builder with no application configuration.
build_test_server
Starts a test server configured by a server builder.
build_with_config
Creates a server builder with application configuration.
create_tcp_listener
Creates and binds a TCP listener with the specified listen backlog.
test_server
Starts a test server for the specified service factory.

Type Aliases§

Server
Controller for a running network server.