Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow access to the config of the created session #277

Open
milyin opened this issue Mar 10, 2024 · 0 comments
Open

allow access to the config of the created session #277

milyin opened this issue Mar 10, 2024 · 0 comments
Labels
api sync Synchronize API with other bindings release Part of the next release

Comments

@milyin
Copy link
Contributor

milyin commented Mar 10, 2024

Describe the release item

It's possible to access config of the working session in zenoh. The zenoh-c can't do it

    /// ### Modify current zenoh configuration
    /// ```
    /// # async_std::task::block_on(async {
    /// use zenoh::prelude::r#async::*;
    ///
    /// let session = zenoh::open(config::peer()).res().await.unwrap();
    /// let _ = session.config().insert_json5("connect/endpoints", r#"["tcp/127.0.0.1/7447"]"#);
    /// # })
    /// ```
    // tags{rust.session.config, api.session.config{set,get}}
    pub fn config(&self) -> &Notifier<Config> {
        self.runtime.config()
    }
@milyin milyin added release Part of the next release api sync Synchronize API with other bindings and removed release Part of the next release labels Mar 10, 2024
@milyin milyin added the release Part of the next release label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api sync Synchronize API with other bindings release Part of the next release
Projects
Status: Backlog
Development

No branches or pull requests

1 participant