rumqtt
rumqtt copied to clipboard
Manual ACK packet support
A solution for issue https://github.com/bytebeamio/rumqtt/issues/841 and issue https://github.com/bytebeamio/rumqtt/issues/609.
Note the example of async_manual_acks_v5 needs PR https://github.com/bytebeamio/rumqtt/pull/854 to make broker re-send publishes.
Type of change
New feature (non-breaking change which adds functionality)
get_manual_ackto return manual ack packet whereset_reason/set_codeto update reason codeset_reason_stringto set reason stringset_user_propertiesto set user properties
manual_ack/try_manual_ackto send the modified packet (PUBACK/PUBREC) returned byget_manual_ack
Checklist:
- [ ] Formatted with
cargo fmt - [ ] Make an entry to
CHANGELOG.mdif it's relevant to the users of the library. If it's not relevant mention why.
Are there any additional comments or feedback? If this solution is acceptable, could you please advise on the steps I can take to expedite the merging process?
Added some docs about the API usage. Added two different ack way in example code and detailed comments on them.
Please check.
Any comments?
Any comments on manual ACK with reason code support here?
Is there any chance to merge this PR? It appears to be relatively independent and should not affect other ongoing discussions.