blob: 4e4e7257f11edee1e638f08f83764468d2a53268 [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen.
#![allow(
deprecated, // FIDL Impl struct pattern is referenced internally
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
)]
#[allow(unused_imports)]
use fidl::{fidl_bits, fidl_empty_struct, fidl_enum, fidl_struct, fidl_table, fidl_xunion};
#[cfg(target_os = "fuchsia")]
#[allow(unused_imports)]
use fuchsia_zircon as zx;
#[allow(unused_imports)]
use fuchsia_zircon_status as zx_status;
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct Simple {
pub f1: u8,
pub f2: bool,
}
fidl_struct! {
name: Simple,
members: [
f1 {
ty: u8,
offset_v1: 0,
},
f2 {
ty: bool,
offset_v1: 1,
},
],
size_v1: 2,
align_v1: 1,
}
#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct BasicStruct {
pub x: u32,
pub y: String,
}
fidl_struct! {
name: BasicStruct,
members: [
x {
ty: u32,
offset_v1: 0,
},
y {
ty: String,
offset_v1: 8,
},
],
size_v1: 24,
align_v1: 8,
}