6 Commits (ac471d296e007118c64ec7b3aea364adf0e5dde0)

Author SHA1 Message Date
trivernis ac471d296e
Change internal bytes representation to Bytes object from bytes crate
Signed-off-by: trivernis <trivernis@protonmail.com>
2 years ago
trivernis fbee60e64b
Change handler result to contain a response
Signed-off-by: trivernis <trivernis@protonmail.com>
2 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>
2 years ago
trivernis be869a7faa
Move messagepack to features and implement raw byte protocol for serialisation
Signed-off-by: trivernis <trivernis@protonmail.com>
2 years ago
trivernis cfc158dcb8
Change to return Err when an awaited response is an error response
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis e088680f68
Add error events
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago