Encoder/decoder interface for transforming request and response data. Used to serialize/deserialize data for event handling.
The request type to encode
The response type to decode
Encodes request arguments into a serializable format.
The request data to encode
A Result containing the encoded data or an error
Decodes serialized data back into response format.
The serialized data to decode
A Result containing the decoded response or an error
Encoder/decoder interface for transforming request and response data. Used to serialize/deserialize data for event handling.