#[repr(i32)]pub enum EGamingDeviceType {
Show 15 variants
Unknown = 0,
StandardPC = 1,
ConsoleLegacy = 256,
PS3 = 273,
Steambox = 288,
Tesla = 320,
Handheld_Legacy = 512,
Phone = 528,
Console = 540,
SteamOSGeneric = 541,
SteamDeck = 544,
LegionGoS = 545,
Fremont = 546,
VR = 768,
SteamFrame = 769,
}Expand description
The EGamingDeviceType enumeration.
Source: lang/steammsg.steamd.
Variants§
Unknown = 0
StandardPC = 1
ConsoleLegacy = 256
PS3 = 273
Steambox = 288
Tesla = 320
Handheld_Legacy = 512
Phone = 528
Console = 540
SteamOSGeneric = 541
SteamDeck = 544
LegionGoS = 545
Fremont = 546
VR = 768
SteamFrame = 769
Implementations§
Source§impl EGamingDeviceType
impl EGamingDeviceType
Sourcepub const ALL: &'static [EGamingDeviceType]
pub const ALL: &'static [EGamingDeviceType]
Every variant of EGamingDeviceType.
Sourcepub fn from_value(value: i32) -> Option<Self>
pub fn from_value(value: i32) -> Option<Self>
Builds a variant from its numeric value.
When several variants share a value, the first declared one is returned.
Trait Implementations§
Source§impl Clone for EGamingDeviceType
impl Clone for EGamingDeviceType
impl Copy for EGamingDeviceType
Source§impl Debug for EGamingDeviceType
impl Debug for EGamingDeviceType
impl Eq for EGamingDeviceType
Source§impl From<EGamingDeviceType> for i32
impl From<EGamingDeviceType> for i32
Source§fn from(value: EGamingDeviceType) -> i32
fn from(value: EGamingDeviceType) -> i32
Converts to this type from the input type.
Source§impl Hash for EGamingDeviceType
impl Hash for EGamingDeviceType
Source§impl Ord for EGamingDeviceType
impl Ord for EGamingDeviceType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EGamingDeviceType
impl PartialEq for EGamingDeviceType
Source§impl PartialOrd for EGamingDeviceType
impl PartialOrd for EGamingDeviceType
impl StructuralPartialEq for EGamingDeviceType
Source§impl TryFrom<i32> for EGamingDeviceType
impl TryFrom<i32> for EGamingDeviceType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§impl TryFrom<u32> for EGamingDeviceType
impl TryFrom<u32> for EGamingDeviceType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for EGamingDeviceType
impl RefUnwindSafe for EGamingDeviceType
impl Send for EGamingDeviceType
impl Sync for EGamingDeviceType
impl Unpin for EGamingDeviceType
impl UnsafeUnpin for EGamingDeviceType
impl UnwindSafe for EGamingDeviceType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.