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
// WARNING: This file is machine generated by fidlgen.

// fidl_experiment = no_optional_structs
// fidl_experiment = simple_empty_response_syntax
// fidl_experiment = unknown_interactions

#![allow(
    unused_parens, // one-element-tuple-case is not a tuple
    unused_mut, // not all args require mutation, but many do
    nonstandard_style, // auto-caps does its best, but is not always successful
)]
#![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, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct Config {
    pub echo_bool: bool,
    pub echo_num: u64,
    pub echo_string: String,
    pub echo_string_vector: Vec<String>,
}

impl fidl::encoding::TopLevel for Config {}

fidl_struct! {
    name: Config,
    members: [
        echo_bool {
            ty: bool,
            index: 0,
            typevar: T0,
            offset_v1: 0,
            offset_v2: 0,
        },
        echo_num {
            ty: u64,
            index: 1,
            typevar: T1,
            offset_v1: 8,
            offset_v2: 8,
        },
        echo_string {
            ty: fidl::encoding::UnboundedString,
            index: 2,
            typevar: T2,
            offset_v1: 16,
            offset_v2: 16,
        },
        echo_string_vector {
            ty: fidl::encoding::UnboundedVector<fidl::encoding::UnboundedString>,
            index: 3,
            typevar: T3,
            offset_v1: 32,
            offset_v2: 32,
        },
    ],
    padding_v1: [
        {
            ty: u64,
            offset: 0,
            mask: 0xffffffffffffff00u64,
        },
    ],
    padding_v2: [
        {
            ty: u64,
            offset: 0,
            mask: 0xffffffffffffff00u64,
        },
    ],
    size_v1: 48,
    size_v2: 48,
    align_v1: 8,
    align_v2: 8,
}