Module zenoh::utils[][src]

Some useful operations for the zenoh API.

Functions

new_reception_timestamp

Generates a reception Timestamp with id=0x00.
This operation should be called if a timestamp is required for an incoming zenoh::net::Sample that doesn’t contain any data_info or timestamp within its data_info.

properties_to_json_value

Convert a set of Properties into a Value::Json.
For instance such Properties: [("k1", "v1"), ("k2, v2")]
are converted into such Json: { "k1": "v1", "k2": "v2" }