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§
- Configuration
- A
Configurationis a recursive key-value structure that allows modifying the behaviour of a node without altering its implementation. - Instance
Id - An
InstanceIduniquely identifies a data flow instance. - NodeId
- A
NodeIduniquely identifies a Node within a data flow. - PortId
- A
PortIdidentifies anInputor anOutputof a Node. - Runtime
Id - A
RuntimeIduniquely identifies a Zenoh-Flow runtime within a Zenoh network. - Shared
Memory Configuration - Structure to configure how Zenoh-Flow uses the shared memory feature provided by Zenoh.
- Vars
Varsis an internal structure that we use to expand the “moustache variables” in a descriptor file.
Traits§
- IMerge
Overwrite - Types which can be combined with another instance of the same type and for which, in case there are common elements,
the elements of
selfwould be kept over those held byother.
Functions§
- deserialize_
id - Deserialise, from a String, an
Arc<str>that is guaranteed to be a valid Zenoh-Flow NodeId or PortId. - parse_
vars - Parse a single Var from a string of the format “KEY=VALUE”.
- try_
parse_ from_ file - Attempts to parse an instance of
Nfrom the content of the file located atpath, overwriting (or complementing) the Vars declared in said file with the providedvars.
Type Aliases§
- Result
- Zenoh-Flow’s result type.