Implements disconnect_with_properties and try_disconnect_with_properties methods on Client and AsyncClient, allowing disconnection from the broker with custom properties and reasons.
It should resolve #887.
Type of change
New feature (non-breaking change which adds functionality)
Checklist:
[x] Formatted with cargo fmt
[x] Make an entry to CHANGELOG.md if it's relevant to the users of the library. If it's not relevant mention why.
Implements
disconnect_with_properties
andtry_disconnect_with_properties
methods onClient
andAsyncClient
, allowing disconnection from the broker with custom properties and reasons.It should resolve #887.
Type of change
Checklist:
cargo fmt
CHANGELOG.md
if it's relevant to the users of the library. If it's not relevant mention why.