17 Commits (324a78803186c2c19916cb69969ff990cb09cfdc)

Author SHA1 Message Date
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 6299f9be02
Change serialization to be able to use multiple formats
Signed-off-by: trivernis <trivernis@protonmail.com>
2 years ago
trivernis 005a4bfc68
Remove generic bounds from Context, Namespace and EventEmitter
Signed-off-by: trivernis <trivernis@protonmail.com>
2 years ago
trivernis 7b0413704c
Remove debug requirement for emitted payloads since its not used anyway
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 4fe9ed16db
Change all explicit protocols to generic trait bindings
Signed-off-by: trivernis <trivernis@protonmail.com>
3 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 1152c949e4
Remove tracing of raw event data
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 3b7dd510d8
Replace log with tracing crate
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis a76e41850d
Change event serialization to not serialize the data twice
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 0d8d66100d
Introduce EventSendPayload for more flexibility of payload serialisation
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 21d8f7afcd
Add namespaces from structs and restructure exports
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 6cb1fb7eba
Add more logging
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 79567d03de
Expose namespace and builder type
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 1921c2a704
Add namespaces
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 24b5da1933
Add event response handling
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 8e483b97cb
Add event_ids to events
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago
trivernis 5792c6757d
Add most ipc stuff
Signed-off-by: trivernis <trivernis@protonmail.com>
3 years ago