Skip to content

Add basic event listener to allow cpp-rs-driver to implement host listeners #1480

@Lorak-mmk

Description

@Lorak-mmk

cpp-driver has a feature called listener callback. It allows users to register a function that will be called when some node status changes (added / removed / up / down).
As far as we can tell, it is based on events (+ sends artificial add+up events when connecting), without fully considering issues with dropped control connection.

To be able to implement this functionality in cpp-rs-driver, Rust Driver first needs to expose it.
Ultimately, we would like to have such channel exposed to user to:

For now, it will be enough to just have a simple api guarded by cpp-rust-unstable, so that the cpp-rs-driver feature can be implemented. cpp-driver also doesn't consider the above issues, so it should not be a regression.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions