#[repr(i32)]pub enum EClientStat {
P2PConnectionsUDP = 0,
P2PConnectionsRelay = 1,
P2PGameConnections = 2,
P2PVoiceConnections = 3,
BytesDownloaded = 4,
}Expand description
The EClientStat enumeration.
Source: lang/steammsg.steamd.
Variants§
P2PConnectionsUDP = 0
P2PConnectionsRelay = 1
P2PGameConnections = 2
P2PVoiceConnections = 3
BytesDownloaded = 4
Implementations§
Source§impl EClientStat
impl EClientStat
Sourcepub const ALL: &'static [EClientStat]
pub const ALL: &'static [EClientStat]
Every variant of EClientStat.
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 EClientStat
impl Clone for EClientStat
impl Copy for EClientStat
Source§impl Debug for EClientStat
impl Debug for EClientStat
impl Eq for EClientStat
Source§impl From<EClientStat> for i32
impl From<EClientStat> for i32
Source§fn from(value: EClientStat) -> i32
fn from(value: EClientStat) -> i32
Converts to this type from the input type.
Source§impl Hash for EClientStat
impl Hash for EClientStat
Source§impl Ord for EClientStat
impl Ord for EClientStat
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 EClientStat
impl PartialEq for EClientStat
Source§impl PartialOrd for EClientStat
impl PartialOrd for EClientStat
impl StructuralPartialEq for EClientStat
Source§impl TryFrom<i32> for EClientStat
impl TryFrom<i32> for EClientStat
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§impl TryFrom<u32> for EClientStat
impl TryFrom<u32> for EClientStat
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for EClientStat
impl RefUnwindSafe for EClientStat
impl Send for EClientStat
impl Sync for EClientStat
impl Unpin for EClientStat
impl UnsafeUnpin for EClientStat
impl UnwindSafe for EClientStat
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.