#[repr(i32)]pub enum EChatMemberStateChange {
Entered = 1,
Left = 2,
Disconnected = 4,
Kicked = 8,
Banned = 16,
VoiceSpeaking = 4_096,
VoiceDoneSpeaking = 8_192,
}Expand description
The EChatMemberStateChange enumeration.
A bit flag set: the variants can be combined with a bitwise or.
Source: lang/steammsg.steamd.
Variants§
Entered = 1
Left = 2
Disconnected = 4
Kicked = 8
Banned = 16
VoiceSpeaking = 4_096
VoiceDoneSpeaking = 8_192
Implementations§
Source§impl EChatMemberStateChange
impl EChatMemberStateChange
Sourcepub const ALL: &'static [EChatMemberStateChange]
pub const ALL: &'static [EChatMemberStateChange]
Every variant of EChatMemberStateChange.
Sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
True when every bit of other is set in this flag set.
Sourcepub const fn intersect(self, other: Self) -> i32
pub const fn intersect(self, other: Self) -> i32
The bitwise and of two flag sets, as a raw value.
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 EChatMemberStateChange
impl Clone for EChatMemberStateChange
impl Copy for EChatMemberStateChange
Source§impl Debug for EChatMemberStateChange
impl Debug for EChatMemberStateChange
impl Eq for EChatMemberStateChange
Source§impl From<EChatMemberStateChange> for i32
impl From<EChatMemberStateChange> for i32
Source§fn from(value: EChatMemberStateChange) -> i32
fn from(value: EChatMemberStateChange) -> i32
Converts to this type from the input type.
Source§impl Hash for EChatMemberStateChange
impl Hash for EChatMemberStateChange
Source§impl Ord for EChatMemberStateChange
impl Ord for EChatMemberStateChange
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 EChatMemberStateChange
impl PartialEq for EChatMemberStateChange
Source§impl PartialOrd for EChatMemberStateChange
impl PartialOrd for EChatMemberStateChange
impl StructuralPartialEq for EChatMemberStateChange
Source§impl TryFrom<i32> for EChatMemberStateChange
impl TryFrom<i32> for EChatMemberStateChange
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§impl TryFrom<u32> for EChatMemberStateChange
impl TryFrom<u32> for EChatMemberStateChange
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for EChatMemberStateChange
impl RefUnwindSafe for EChatMemberStateChange
impl Send for EChatMemberStateChange
impl Sync for EChatMemberStateChange
impl Unpin for EChatMemberStateChange
impl UnsafeUnpin for EChatMemberStateChange
impl UnwindSafe for EChatMemberStateChange
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.