-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
The current API has some drawbacks around the setting of verdict:
- It is possible to set the verdict multiple times on the same message.
- On the other hand, it is not possible to delay setting the verdict outside of the callback. This is well supported by the C library ‒ they even go so far to promise it's OK to verdict packets out of order and inside another thread.
Is it possible to pass owned (not borrowed) message to the callback and consume it during verdicting? And maybe go so far as to panic (or at least warn) if the message is destroyed without getting a verdict?
If the problem is the buffer of data, it could be passed to the callback as two parameters ‒ one Message, that'd contain the metadata and the ability to verdict, and borrowed slice of bytes as the payload.
Metadata
Metadata
Assignees
Labels
No labels