Function zenoh::net::config::client[][src]

pub fn client(peer: Option<String>) -> ConfigProperties

Creates a default 'client' mode zenoh net Session configuration.

The returned configuration contains :

  • (ZN_MODE_KEY, "client")

If the given peer locator is not None, the returned configuration also contains :

  • (ZN_PEER_KEY, <peer>)