fidl_data_zx/
profile.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 zerocopy::IntoBytes;
11
12use crate::zx_common::*;
13
14#[repr(u32)]
15#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
16pub enum ProfileInfoType {
17    ZxProfileInfoScheduler = 1,
18}
19
20impl ProfileInfoType {
21    pub fn from_raw(raw: u32) -> Option<Self> {
22        match raw {
23            1 => Some(Self::ZxProfileInfoScheduler),
24
25            _ => None,
26        }
27    }
28}
29
30pub const ZX_PRIORITY_LOWEST: i32 = 0;
31
32pub const ZX_PRIORITY_LOW: i32 = 8;
33
34pub const ZX_PRIORITY_DEFAULT: i32 = 16;
35
36pub const ZX_PRIORITY_HIGH: i32 = 24;
37
38pub const ZX_PRIORITY_HIGHEST: i32 = 31;
39
40#[repr(C)]
41#[derive(Clone, Copy, Debug, Eq, PartialEq)]
42pub struct ProfileInfo {
43    pub r#type: ProfileInfoType,
44}