libc/new/apple/libpthread/sys/qos.rs
1//! Header: `sys/qos.h`
2//!
3//! <https://github.com/apple-oss-distributions/libpthread/blob/main/include/sys/qos.h>
4
5use crate::prelude::*;
6
7#[derive(Debug)]
8#[repr(u32)]
9pub enum qos_class_t {
10 QOS_CLASS_USER_INTERACTIVE = 0x21,
11 QOS_CLASS_USER_INITIATED = 0x19,
12 QOS_CLASS_DEFAULT = 0x15,
13 QOS_CLASS_UTILITY = 0x11,
14 QOS_CLASS_BACKGROUND = 0x09,
15 QOS_CLASS_UNSPECIFIED = 0x00,
16}
17impl Copy for qos_class_t {}
18impl Clone for qos_class_t {
19 fn clone(&self) -> qos_class_t {
20 *self
21 }
22}