async-proto 0.2.0

Simple async binary network protocols
Documentation

This is async-proto, a library crate facilitating simple binary network protocols with async support.

The main feature is the [Protocol] trait, which allows reading a value of an implementing type from an async or sync stream, as well as writing one to an async or sync sink.

Protocol can be derived for enums and structs if all fields implement Protocol.

Features

The following feature can be enabled via Cargo:

  • blocking: Adds blocking read_sync and write_sync methods to the Protocol trait.