Expand description
General-purpose network server.
Use build() or ServerBuilder to register TCP or Unix domain socket
services. Each worker receives its own service instance and processes
connections on a single-threaded runtime.
Re-exports§
pub use crate::NoConfig;pub use crate::ServerAppConfig;
Structs§
- Accept
Loop - Streamin io accept loop
- Accept
Notify - Connection
- Server
Builder - Builder for a network server.
- Service
Config - Service
Runtime - Stream
Server - Net streaming server
- Test
Server - Test server controller
- Test
Server Builder - Test server builder
- Token
- Identifier assigned to a registered listener.
Enums§
- Acceptor
Command - Server
Status - Server readiness status.
- Stream
Functions§
- bind_
addr - Binds TCP listeners for every address resolved from
addr. - build
- Creates a server builder with no application configuration.
- build_
test_ server - Start new server with 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 - Start test server