1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#![allow(
unused_parens, unused_mut, nonstandard_style, )]
#![recursion_limit = "512"]
#[cfg(target_os = "fuchsia")]
#[allow(unused_imports)]
use fuchsia_zircon as zx;
#[allow(unused_imports)]
use {
bitflags::bitflags,
fidl::{
client::QueryResponseFut,
encoding::zerocopy,
endpoints::{ControlHandle as _, Responder as _},
fidl_bits, fidl_enum, fidl_struct, fidl_table, fidl_union,
},
fuchsia_zircon_status as zx_status,
futures::future::{self, MaybeDone, TryFutureExt},
};
#[derive(
Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, zerocopy::AsBytes, zerocopy::FromBytes,
)]
#[repr(C)]
pub struct MeshPath {
pub dest_address: [u8; 6],
pub next_hop: [u8; 6],
pub metric: u32,
}
impl fidl::encoding::TopLevel for MeshPath {}
fidl_struct! {
copy: true,
name: MeshPath,
members: [
dest_address {
ty: fidl::encoding::Array<u8, 6>,
index: 0,
typevar: T0,
offset_v1: 0,
offset_v2: 0,
},
next_hop {
ty: fidl::encoding::Array<u8, 6>,
index: 1,
typevar: T1,
offset_v1: 6,
offset_v2: 6,
},
metric {
ty: u32,
index: 2,
typevar: T2,
offset_v1: 12,
offset_v2: 12,
},
],
padding_v1: [
],
padding_v2: [
],
size_v1: 16,
size_v2: 16,
align_v1: 4,
align_v2: 4,
}
#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct MeshPathTable {
pub paths: Vec<MeshPath>,
}
impl fidl::encoding::TopLevel for MeshPathTable {}
fidl_struct! {
name: MeshPathTable,
members: [
paths {
ty: fidl::encoding::UnboundedVector<MeshPath>,
index: 0,
typevar: T0,
offset_v1: 0,
offset_v2: 0,
},
],
padding_v1: [
],
padding_v2: [
],
size_v1: 16,
size_v2: 16,
align_v1: 8,
align_v2: 8,
}