Module zenoh::prelude

source ·
Expand description

A “prelude” for crates using the zenoh crate.

This prelude is similar to the standard library’s prelude in that you’ll almost always want to import its entire contents, but unlike the standard library’s prelude you’ll have to do so manually. An example of using this is:

use zenoh::prelude::r#async::*;

Re-exports§

Modules§

  • Prelude to import when using Zenoh’s async API.
  • Prelude to import when using Zenoh’s sync API.

Structs§

  • The main configuration structure for Zenoh.
  • A Locator contains a choice of protocol, an address and port, as well as optional additional properties to work with. A String that respects the EndPoint canon form: <locator>#<config>, such that <locator> is a valid Locator <config> is of the form <key1>=<value1>;...;<keyN>=<valueN> where keys are alphabetically sorted.
  • A Locator contains a choice of protocol, an address and port, as well as optional additional properties to work with. A String that respects the Locator canon form: <proto>/<address>[?<metadata>], such that <metadata> is of the form <key1>=<value1>;...;<keyN>=<valueN> where keys are alphabetically sorted.
  • A Arc<str> newtype that is statically known to be a valid key expression.
  • A zenoh session.
  • The global unique id of a zenoh peer. The global unique id of a zenoh peer.
  • A str newtype that is statically known to be a valid key expression.

Enums§

Traits§