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§
- Deserialize
Error - Errors that can occur when deserializing a message.
- Reactor
Status - What the connection should do after processing a batch of inbound messages.
Traits§
- Connection
Bindings - Define the types for a Connection.
- Deserializer
- A deserializer takes inbound bytes and produces messages.
- Message
Reactor - 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.