[][src]Module spirit_tokio::handlers

Handlers of connections and sockets.

The Fragments provided by this crate are not directly useful on their own. Unlike for example logging, a listening TCP socket doesn't do anything on its own.

This module provides Transformations that bind the sockets with some useful action (different handlers represent different abstractions from the actions). In general, these actions should return a Future and that one can in turn be installed.

See the crate example for the usage.

Structs

HandleListener

A handler newtype to handle each separate connection.

HandleListenerInit

A handler of incoming connections with per-listener initialization.

HandleSocket

A Transformation to handle the whole socket.