Trait that should be implemented by enums that model the “remote messages” to be consumed by a “Responsive Processor” –
“remote messages” may either be messages produced by the remote server or by the remote client (when we are implementing the opposite peer).
This trait, therefore, specifies how to deserialize()
enum variants received by the remote peer (like RON, for textual protocols)
Trait that should be implemented by enums that model the “local messages” to be sent to the remote peer –
“local messages” may either be messages generated by the server or by the client, depending on if you’re building a server or client.
This trait, therefore, specifies how to:
Adherents will, typically, also implement [ReactiveMessagingUnresponsiveSerializer].
By upgrading your type with this trait, it is possible to build a “Responsive Processor”, where the returned Stream
contains the messages to be sent as an answer to the remote peer.
This trait, therefore, specifies (to the internal sender) how to handle special response cases, like “no answer” and “disconnection” messages.