Crate yamux

source ·
Expand description

Implementation of yamux, a multiplexer over reliable, ordered connections, such as TCP/IP.

The two primary objects, clients of this crate interact with, are Connection and StreamHandle. The former wraps the underlying connection and multiplexes StreamHandles which implement tokio_io::AsyncRead and tokio_io::AsyncWrite over it. Connection implements futures::Stream yielding StreamHandles for inbound connection attempts.

Structs

Yamux configuration.
Holds the underlying connection.
A handle to a multiplexed stream.

Enums

Specifies when window update frames are sent.