Expand description
This crate implements the Remux specification.
It multiplexes independent I/O streams over reliable, ordered connections, such as TCP/IP.
The three primary objects, clients of this crate interact with, are:
Connection, which wraps the underlying I/O resource, e.g. a socket,Stream, which implementsfutures::io::AsyncReadandfutures::io::AsyncWrite, andControl, to asynchronously control theConnection.
Structs§
- Config
- Remux configuration.
- Connection
- A Remux connection object.
- Control
- The Remux
Connectioncontroller. - Packet
- Byte data produced by the
futures::stream::Streamimpl ofStream. - Stream
- A multiplexed Remux stream.
- Stream
Id - The ID of a stream.
Enums§
- Connection
Error - The various error cases a connection may encounter.
- Frame
Decode Error - Possible errors while decoding a message frame.
- Header
Decode Error - Possible errors while decoding a message frame header.
- Mode
- How the connection is used.
- Window
Update Mode - Specifies when window update frames are sent.
Functions§
- into_
stream - Turn a Remux
Connectioninto afutures::Stream.