#[repr(i32)]pub enum EClientPersonaStateFlag {
Show 14 variants
Status = 1,
PlayerName = 2,
QueryPort = 4,
SourceID = 8,
Presence = 16,
LastSeen = 64,
UserClanRank = 128,
GameExtraInfo = 256,
GameDataBlob = 512,
ClanData = 1_024,
Facebook = 2_048,
RichPresence = 4_096,
Broadcast = 8_192,
Watching = 16_384,
}Expand description
The EClientPersonaStateFlag enumeration.
A bit flag set: the variants can be combined with a bitwise or.
Source: lang/steammsg.steamd.
Variants§
Status = 1
PlayerName = 2
QueryPort = 4
SourceID = 8
Presence = 16
LastSeen = 64
UserClanRank = 128
GameExtraInfo = 256
GameDataBlob = 512
ClanData = 1_024
Facebook = 2_048
RichPresence = 4_096
Broadcast = 8_192
Watching = 16_384
Implementations§
Source§impl EClientPersonaStateFlag
impl EClientPersonaStateFlag
Sourcepub const ALL: &'static [EClientPersonaStateFlag]
pub const ALL: &'static [EClientPersonaStateFlag]
Every variant of EClientPersonaStateFlag.
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 EClientPersonaStateFlag
impl Clone for EClientPersonaStateFlag
impl Copy for EClientPersonaStateFlag
Source§impl Debug for EClientPersonaStateFlag
impl Debug for EClientPersonaStateFlag
impl Eq for EClientPersonaStateFlag
Source§impl From<EClientPersonaStateFlag> for i32
impl From<EClientPersonaStateFlag> for i32
Source§fn from(value: EClientPersonaStateFlag) -> i32
fn from(value: EClientPersonaStateFlag) -> i32
Converts to this type from the input type.
Source§impl From<EClientPersonaStateFlag> for PersonaStateFlags
impl From<EClientPersonaStateFlag> for PersonaStateFlags
Source§fn from(flag: EClientPersonaStateFlag) -> Self
fn from(flag: EClientPersonaStateFlag) -> Self
Converts to this type from the input type.
Source§impl Hash for EClientPersonaStateFlag
impl Hash for EClientPersonaStateFlag
Source§impl Ord for EClientPersonaStateFlag
impl Ord for EClientPersonaStateFlag
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 EClientPersonaStateFlag
impl PartialEq for EClientPersonaStateFlag
Source§impl PartialOrd for EClientPersonaStateFlag
impl PartialOrd for EClientPersonaStateFlag
impl StructuralPartialEq for EClientPersonaStateFlag
Source§impl TryFrom<i32> for EClientPersonaStateFlag
impl TryFrom<i32> for EClientPersonaStateFlag
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§impl TryFrom<u32> for EClientPersonaStateFlag
impl TryFrom<u32> for EClientPersonaStateFlag
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for EClientPersonaStateFlag
impl RefUnwindSafe for EClientPersonaStateFlag
impl Send for EClientPersonaStateFlag
impl Sync for EClientPersonaStateFlag
impl Unpin for EClientPersonaStateFlag
impl UnsafeUnpin for EClientPersonaStateFlag
impl UnwindSafe for EClientPersonaStateFlag
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.