[][src]Module spirit_tokio::net::limits

Handling limits and errors on listening sockets.

„Naked“ listening sockets have two important problems:

This module provides tools to address these problems in the form of WithListenLimits wrapper. There are also type aliases for already wrapped sockets, like TcpListenWithLimits

Structs

Limited

Wrapper around a listener instance.

Limits

An implementation of ListenLimits that reads the limits from configuration.

Tracked

One connection accepted through the Limited.

WithListenLimits

A wrapper around a listening socket Fragment that adds limits and error handling to it.

Traits

ListenLimits

Additional configuration for limiting of connections & error handling when accepting.

Type Definitions

WithLimits

A convenience type alias for the default WithListenLimits case.