Module serde

Source
Expand description

This module handles the serializing and deserializing of OpenTTD packets.

It is designed to make most things go right by default, but it is far from general purpose.

Enums§

Error

Traits§

PacketRead
A trait that provides the read_packet function to a type implementing std::io::Read.
PacketWrite
WritablePacket

Functions§

from_bytes
Decode a serializable type from an OpenTTD buffer. The input should be the data buffer, without the preceding length and packet type. Usually this is is used to implement PacketRead.

Type Aliases§

Result