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§
Traits§
- Packet
Read - A trait that provides the
read_packet
function to a type implementingstd::io::Read
. - Packet
Write - Writable
Packet
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
.