Skip to main content

steam_enums/
estorageblockfilesystemtype.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 EStorageBlockFileSystemType {
6    Invalid = 0,
7    Unknown = 1,
8    VFat = 2,
9    Ext4 = 3,
10}
11
12impl EStorageBlockFileSystemType {
13    pub fn from_i32(val: i32) -> Option<Self> {
14        match val {
15            x if x == Self::Invalid as i32 => Some(Self::Invalid),
16            x if x == Self::Unknown as i32 => Some(Self::Unknown),
17            x if x == Self::VFat as i32 => Some(Self::VFat),
18            x if x == Self::Ext4 as i32 => Some(Self::Ext4),
19            _ => None,
20        }
21    }
22}