Crate protosocket

Source
Expand description

Low-level connection types for protosocket.

This is the core of protosocket, providing the Connection type. This type is used to create both client and server channels. Normally you will use Connection via the protosocket-prost or protosocket-server crates.

Structs§

Connection
A bidirectional, message-oriented tcp stream wrapper.

Enums§

DeserializeError
Errors that can occur when deserializing a message.
ReactorStatus
What the connection should do after processing a batch of inbound messages.

Traits§

ConnectionBindings
Define the types for a Connection.
Deserializer
A deserializer takes inbound bytes and produces messages.
MessageReactor
A message reactor is a stateful object that processes inbound messages. You receive &mut self, and you receive your messages by value.
Serializer
A serializer takes messages and produces outbound bytes.