8 Commits (fbee60e64ba32f9b647cbe7c5e955e6fbe3d8b74)

Author SHA1 Message Date
trivernis fbee60e64b
Change handler result to contain a response
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
Trivernis 8685bcbab8
Shorten emitting and reply awaiting to implement Future for metadata
Signed-off-by: Trivernis <trivernis@protonmail.com>
3 years ago
trivernis f189fe11f0
Add FromPayload implementation for DeserializeOwned
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 324a788031
Change how replies are emitted
All events that are emitted inside a handler function are seen
as replies to the event that called the handler.
The FromPayloadBytes and ToPayloadBytes traits have been renamed
to FromPayload and IntoPayload. The IntoPayload trait passes the
context in its arguments to allow serializable structures to be
serialized by the default serializer.

Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis f2606b4704
Add IntoSerdePayload trait
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 6299f9be02
Change serialization to be able to use multiple formats
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis bf5a593377
Move serialization implementation and rename messagepack feature to serialize_rmp
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 38fb1ee16a
Add tests for payloads
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago