Expand description
General-purpose TCP server APIs.
Modules§
- openssl
- An implementation of SSL streams for ntex backed by OpenSSL
- rustls
- An implementation of TLS streams for ntex backed by rustls
Structs§
- Accept
Loop - Accept loop for network listeners.
- Accept
Notify - Handle for sending commands to the accept loop.
- Connection
- Accepted connection dispatched to a worker.
- NoConfig
- Application configuration that creates unit state.
- Server
Builder - Builder for a network server.
- Service
Config - Listener and worker configuration used by
ServerBuilder::configure. - Service
Runtime - Per-worker runtime used to attach services to named listeners.
- Stream
Server - Worker configuration for network servers.
- Test
Server - Test server controller.
- Test
Server Builder - Builder for a single-worker test server.
- TlsConfig
- Tls service configuration
- Token
- Identifier assigned to a registered listener.
Enums§
- Acceptor
Command - Command sent to the accept loop.
- Server
Status - Server readiness status.
- Stream
- Accepted socket stream.
- TlsError
- Ssl error combinded with service error.
Traits§
- Server
AppConfig - 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.