pub struct CMsgClientChangeStatus {
pub persona_state: Option<u32>,
pub player_name: Option<String>,
pub is_auto_generated_name: Option<bool>,
pub high_priority: Option<bool>,
pub persona_set_by_user: Option<bool>,
pub persona_state_flags: Option<u32>,
pub need_persona_response: Option<bool>,
pub is_client_idle: Option<bool>,
}Fields§
§persona_state: Option<u32>§player_name: Option<String>§is_auto_generated_name: Option<bool>§high_priority: Option<bool>§persona_set_by_user: Option<bool>§persona_state_flags: Option<u32>§need_persona_response: Option<bool>§is_client_idle: Option<bool>Implementations§
Source§impl CMsgClientChangeStatus
impl CMsgClientChangeStatus
Sourcepub fn persona_state(&self) -> u32
pub fn persona_state(&self) -> u32
Returns the value of persona_state, or the default value if persona_state is unset.
Sourcepub fn player_name(&self) -> &str
pub fn player_name(&self) -> &str
Returns the value of player_name, or the default value if player_name is unset.
Sourcepub fn is_auto_generated_name(&self) -> bool
pub fn is_auto_generated_name(&self) -> bool
Returns the value of is_auto_generated_name, or the default value if is_auto_generated_name is unset.
Sourcepub fn high_priority(&self) -> bool
pub fn high_priority(&self) -> bool
Returns the value of high_priority, or the default value if high_priority is unset.
Sourcepub fn persona_set_by_user(&self) -> bool
pub fn persona_set_by_user(&self) -> bool
Returns the value of persona_set_by_user, or the default value if persona_set_by_user is unset.
Sourcepub fn persona_state_flags(&self) -> u32
pub fn persona_state_flags(&self) -> u32
Returns the value of persona_state_flags, or the default value if persona_state_flags is unset.
Sourcepub fn need_persona_response(&self) -> bool
pub fn need_persona_response(&self) -> bool
Returns the value of need_persona_response, or the default value if need_persona_response is unset.
Sourcepub fn is_client_idle(&self) -> bool
pub fn is_client_idle(&self) -> bool
Returns the value of is_client_idle, or the default value if is_client_idle is unset.
Trait Implementations§
Source§impl Clone for CMsgClientChangeStatus
impl Clone for CMsgClientChangeStatus
Source§fn clone(&self) -> CMsgClientChangeStatus
fn clone(&self) -> CMsgClientChangeStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CMsgClientChangeStatus
impl Debug for CMsgClientChangeStatus
Source§impl Default for CMsgClientChangeStatus
impl Default for CMsgClientChangeStatus
impl Eq for CMsgClientChangeStatus
Source§impl Hash for CMsgClientChangeStatus
impl Hash for CMsgClientChangeStatus
Source§impl Message for CMsgClientChangeStatus
impl Message for CMsgClientChangeStatus
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for CMsgClientChangeStatus
impl PartialEq for CMsgClientChangeStatus
Source§fn eq(&self, other: &CMsgClientChangeStatus) -> bool
fn eq(&self, other: &CMsgClientChangeStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CMsgClientChangeStatus
Auto Trait Implementations§
impl Freeze for CMsgClientChangeStatus
impl RefUnwindSafe for CMsgClientChangeStatus
impl Send for CMsgClientChangeStatus
impl Sync for CMsgClientChangeStatus
impl Unpin for CMsgClientChangeStatus
impl UnsafeUnpin for CMsgClientChangeStatus
impl UnwindSafe for CMsgClientChangeStatus
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