Skip to main content

Module net

Module net 

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

AcceptLoop
Streamin io accept loop
AcceptNotify
Connection
ServerBuilder
Builder for a network server.
ServiceConfig
ServiceRuntime
StreamServer
Net streaming server
TestServer
Test server controller
TestServerBuilder
Test server builder
Token
Identifier assigned to a registered listener.

Enums§

AcceptorCommand
ServerStatus
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

Type Aliases§

Server