# Functions
New creates a new Muxer object and starts the read loop.
NewSegment returns a new Segment given a protocol ID, payload bytes, and whether the segment is a response.
# Constants
Initiator-only (client) diffusion mode.
Initiator and responder (full duplex) mode.
Default (invalid) diffusion mode.
Responder-only (server) diffusion mode.
Initiator (client) protocol role.
Default (invalid) protocol role.
Responder (server) protocol role.
Magic number chosen to represent unknown protocols.
Maximum segment payload length.
# Structs
Muxer wraps a connection to allow running multiple mini-protocols over a single connection.
Segment represents basic unit of data in the Ouroboros protocol.
SegmentHeader represents the header bytes on a segment.
# Type aliases
DiffusionMode is an enum for the valid muxer difficusion modes.
ProtocolRole is an enum of the protocol roles.