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§
pub use crate::key_expr::KeyExpr;
pub use crate::handlers::IntoCallbackReceiverPair;
pub use crate::selector::Parameter;
pub use crate::selector::Parameters;
pub use crate::selector::Selector;
pub use crate::query::QueryConsolidation;
pub use crate::value::Value;
pub use crate::sample::Locality;
unstable
pub use crate::sample::Sample;
pub use crate::publication::Priority;
pub use crate::publication::PublisherDeclarations;
unstable
pub use crate::config;
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. AString
that respects theEndPoint
canon form:<locator>#<config>
, such that<locator>
is a validLocator
<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. AString
that respects theLocator
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§
- The kind of congestion control.
- The kind of consolidation. The kind of consolidation.
- The encoding of a zenoh
Value
. The encoding of a zenohzenoh::Value
. - The encoding of a zenoh
Value
. - The kind of a
Sample
.
Traits§
- Zenoh’s trait for resolving builder patterns.
- Functions to create zenoh entities
- A trait for buffers that can be composed of multiple non contiguous slices.