steam-enums 0.1.2

Steam protocol enumerations (EResult, EMsg, EAccountType, etc.) for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
pub enum EBroadcastEncoderSetting {
    BestQuality = 0,
    BestPerformance = 1,
}

impl EBroadcastEncoderSetting {
    pub fn from_i32(val: i32) -> Option<Self> {
        match val {
            x if x == Self::BestQuality as i32 => Some(Self::BestQuality),
            x if x == Self::BestPerformance as i32 => Some(Self::BestPerformance),
            _ => None,
        }
    }
}