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