Crate zenoh_flow_commons
source ·Expand description
This crate centralises structures that are shared across Zenoh-Flow.
⚠️ This crate is intended for internal usage within Zenoh-Flow. All structures that are exposed in public facing API are re-exposed in the relevant crates.
Structs§
- A
Configuration
is a recursive key-value structure that allows modifying the behaviour of a node without altering its implementation. - An
InstanceId
uniquely identifies a data flow instance. - A
NodeId
uniquely identifies a Node within a data flow. - A
PortId
identifies anInput
or anOutput
of a Node. - A
RuntimeId
uniquely identifies a Zenoh-Flow runtime within a Zenoh network. - Structure to configure how Zenoh-Flow uses the shared memory feature provided by Zenoh.
Vars
is an internal structure that we use to expand the “moustache variables” in a descriptor file.
Traits§
- Types which can be combined with another instance of the same type and for which, in case there are common elements, the elements of
self
would be kept over those held byother
.
Functions§
- Parse a single Var from a string of the format “KEY=VALUE”.
- Attempts to parse an instance of
N
from the content of the file located atpath
, overwriting (or complementing) the Vars declared in said file with the providedvars
.
Type Aliases§
- Zenoh-Flow’s result type.