Skip to content

Connectivity API: get information about links and transports#684

Merged
milyin merged 16 commits intomainfrom
connectivity_api
Mar 11, 2026
Merged

Connectivity API: get information about links and transports#684
milyin merged 16 commits intomainfrom
connectivity_api

Conversation

@milyin
Copy link
Contributor

@milyin milyin commented Jan 15, 2026

the connectivity API was introduced in eclipse-zenoh/zenoh#2301
This PS adds it to zenoh-python

@milyin milyin added new feature Something new is needed enhancement Existing things could work better labels Jan 15, 2026
}

#[getter]
fn interfaces<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyList>> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just return a Vec

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this approach is used for all methods of SessionInfo, better to make it in separate fix


fn links<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyList>> {
let list = PyList::empty(py);
for link in py.allow_threads(|| self.0.links().wait()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just return a Vec

@milyin milyin merged commit 7941895 into main Mar 11, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Existing things could work better new feature Something new is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants