Skip to main content

Module codec

Module codec 

Source
Expand description

Message codec.

Codec provides encode/decode for WebSocket text frames. A blanket implementation via serde_json is provided for any Serialize + DeserializeOwned.

Structs§

JsonCodec
JSON codec helper for types that don’t want to implement Codec directly or where you need associated functions without trait dispatch.

Traits§

Codec
Trait for encoding/decoding WebSocket messages.