Crate penguin_mux

Crate penguin_mux 

Source
Expand description

Multiplexing streamed data and datagrams over a single WebSocket connection.

This is not a general-purpose WebSocket multiplexing library. It is tailored to the needs of penguin.

Modules§

config
Multiplexor configuration
frame
Frames. Each frame strictly fits in a Message.
timing
Various timing utilities.
ws
Generic WebSocket

Structs§

BindRequest
A Bind request that the user can respond to
Datagram
Datagram frame data
Multiplexor
A multiplexor over a WebSocket connection.
MuxStream
All parameters of a stream channel

Enums§

Error
Multiplexor error

Constants§

PROTOCOL_VERSION
Current mux and Penguin protocol version
PROTOCOL_VERSION_NUMBER
Current mux and Penguin protocol version, only the version number

Traits§

Dupe
Marker trait for types that can be cheaply cloned.
IntKey
Randomly generate a new number

Type Aliases§

Result
A variant of std::result::Result with Error as the error type.