Skip to main content

steam_enums/
echildprocessquerycommand.rs

1#![allow(non_camel_case_types)]
2#![allow(non_upper_case_globals)]
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
4#[repr(i32)]
5pub enum EChildProcessQueryCommand {
6    Invalid = 0,
7    GpuTopology = 1,
8    Max = 2,
9}
10
11impl EChildProcessQueryCommand {
12    pub fn from_i32(val: i32) -> Option<Self> {
13        match val {
14            x if x == Self::Invalid as i32 => Some(Self::Invalid),
15            x if x == Self::GpuTopology as i32 => Some(Self::GpuTopology),
16            x if x == Self::Max as i32 => Some(Self::Max),
17            _ => None,
18        }
19    }
20}