steam-enums 0.1.2

Steam protocol enumerations (EResult, EMsg, EAccountType, etc.) for Rust.
Documentation
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
pub enum EAsyncGameSessionUserState {
    Unknown = -1,
    WaitingForOthers = 0,
    ReadyForAction = 1,
    Done = 2,
}

impl EAsyncGameSessionUserState {
    pub fn from_i32(val: i32) -> Option<Self> {
        match val {
            x if x == Self::Unknown as i32 => Some(Self::Unknown),
            x if x == Self::WaitingForOthers as i32 => Some(Self::WaitingForOthers),
            x if x == Self::ReadyForAction as i32 => Some(Self::ReadyForAction),
            x if x == Self::Done as i32 => Some(Self::Done),
            _ => None,
        }
    }
}