[][src]Module spirit_tokio::net

Autoconfiguration of network primitives of tokio

This is where the „meat“ of this crate lives. It contains various configuration Fragments and utilities to manage network primitives. However, currently only listening (bound) sockets are present. Keeping a set of connecting socket (eg. a connection pool or something like that) is vaguely planned, though it is not clear how it'll look exactly. Input is welcome.

Note that many common types are reexported to the root of the crate.

Modules

limits

Handling limits and errors on listening sockets.

unix

Support for unix domain sockets.

Structs

ConfiguredIncoming

A stream wrapper that applies configuration to each item.

ConfiguredStreamListener

A wrapper around an IntoIncoming that applies configuration.

Listen

A description of listening interface and port.

TcpConfig

An implementation of the StreamConfig trait to configure TCP connections.

TcpListen

A configuration fragment of a TCP listening socket.

UdpListen

A configuration fragment describing a bound UDP socket.

Enums

MaybeDuration

Configuration that can be unset, explicitly turned off or set to a duration.

Traits

IntoIncoming

Abstraction over endpoints that accept connections.

StreamConfig

Abstracts over a configuration subfragment that applies further settings to an already accepted stream.

Type Definitions

MinimalTcpListen

A TcpListen with all parameters set to Empty.

TcpListenWithLimits

Convenience type alias for configuration fragment for TCP listening socket with handling of accept errors and limiting number of current connections.