Module tokio::server [] [src]

A generic Tokio TCP server implementation.

Structs

ServerHandle

A handle to a running server.

Traits

NewTask

Create a new Task to handle a server socket.

Functions

listen

Spawn a new Task that binds to the given addr then accepts all incoming connections; dispatching them to tasks created by new_task.