Crate protocol

source ·
Expand description

Simple packet-based protocol definitions in Rust.

  • The Parcel trait defines any type that can be serialized to a connection.
  • The wire module deals with transmission of Parcels.

Modules

Contains newtypes over the standard library types that support finer-grained serialization settings.
Helper functions for dealing with sets or lists of parcels.
Stream-based and datagram-based communication implementations.

Macros

Defines a type built out of other Parcel types.
Defines a new middleware pipeline that implements Pipeline.
Defines a new struct-based packet.
Defines a packet kind enum.
Implements Parcel for some struct.

Structs

Copy of CharTryFromError that works in stable rust
The Error type.
Copy of TryFromIntError that works in stable rust

Enums

Specifies the byte order of data transfer.
The kind of an error.

Traits

A value which can be read and written.
Additional methods for Result, for easy interaction with this crate.

Type Definitions

The default byte ordering.