Skip to main content

harmos_protocol/
clock.rs

1/* ***
2 *
3 * Harmos
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * ***
8 */
9
10//! Shared Built-In Clock Descriptors.
11
12/* === Modules === */
13
14/* === Re-Exports === */
15
16/* === Imports === */
17
18// Standard Library Imports
19
20// Third Party Imports
21use prost::Message;
22use prost_types::FileDescriptorSet;
23
24// Local Imports
25
26/* === Constants === */
27
28/* === Macros === */
29
30/* === Type Aliases === */
31
32/* === Structs === */
33
34/* === Enums === */
35
36/* === Traits === */
37
38/* === Implementations === */
39
40/* === Public Functions === */
41
42/// Complete descriptor inventory for the two built-in clock operations.
43pub fn declarations_types() -> FileDescriptorSet {
44    FileDescriptorSet::decode(include_bytes!("clock-descriptors.bin").as_slice()).expect("generated host clock descriptors")
45}
46
47/* === Private Functions === */
48
49/* === Tests === */