fidl_data_zx/
channel.rs

1// Copyright 2022 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// DO NOT EDIT.
6// Generated from FIDL library `zx` by zither, a Fuchsia platform tool.
7
8#![allow(unused_imports)]
9
10use bitflags::bitflags;
11use zerocopy::{FromBytes, IntoBytes};
12
13use crate::rights::*;
14use crate::zx_common::*;
15
16pub type HandleOp = u32;
17
18#[repr(C)]
19#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
20pub struct HandleInfo {
21    pub handle: Handle,
22    pub r#type: ObjType,
23    pub rights: Rights,
24    pub unused: u32,
25}
26
27#[repr(C)]
28#[derive(Clone, Copy, Debug, Eq, FromBytes, IntoBytes, PartialEq)]
29pub struct ChannelCallArgs {}
30
31#[repr(C)]
32#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
33pub struct HandleDisposition {
34    pub operation: HandleOp,
35    pub handle: Handle,
36    pub r#type: ObjType,
37    pub rights: Rights,
38    pub result: Status,
39}
40
41#[repr(C)]
42#[derive(Clone, Copy, Debug, Eq, FromBytes, IntoBytes, PartialEq)]
43pub struct ChannelCallEtcArgs {}