pub struct CMsgServerPeer {
pub player_slot: Option<i32>,
pub steamid: Option<u64>,
pub ipc: Option<CMsgIpcAddress>,
pub they_hear_you: Option<bool>,
pub you_hear_them: Option<bool>,
pub is_listenserver_host: Option<bool>,
}Fields§
§player_slot: Option<i32>§steamid: Option<u64>§ipc: Option<CMsgIpcAddress>§they_hear_you: Option<bool>§you_hear_them: Option<bool>§is_listenserver_host: Option<bool>Implementations§
Source§impl CMsgServerPeer
impl CMsgServerPeer
Sourcepub fn player_slot(&self) -> i32
pub fn player_slot(&self) -> i32
Returns the value of player_slot, or the default value if player_slot is unset.
Sourcepub fn steamid(&self) -> u64
pub fn steamid(&self) -> u64
Returns the value of steamid, or the default value if steamid is unset.
Sourcepub fn they_hear_you(&self) -> bool
pub fn they_hear_you(&self) -> bool
Returns the value of they_hear_you, or the default value if they_hear_you is unset.
Sourcepub fn you_hear_them(&self) -> bool
pub fn you_hear_them(&self) -> bool
Returns the value of you_hear_them, or the default value if you_hear_them is unset.
Sourcepub fn is_listenserver_host(&self) -> bool
pub fn is_listenserver_host(&self) -> bool
Returns the value of is_listenserver_host, or the default value if is_listenserver_host is unset.
Trait Implementations§
Source§impl Clone for CMsgServerPeer
impl Clone for CMsgServerPeer
Source§fn clone(&self) -> CMsgServerPeer
fn clone(&self) -> CMsgServerPeer
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CMsgServerPeer
impl Debug for CMsgServerPeer
Source§impl Default for CMsgServerPeer
impl Default for CMsgServerPeer
Source§fn default() -> CMsgServerPeer
fn default() -> CMsgServerPeer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CMsgServerPeer
impl<'de> Deserialize<'de> for CMsgServerPeer
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CMsgServerPeer, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CMsgServerPeer, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for CMsgServerPeer
impl Hash for CMsgServerPeer
Source§impl Message for CMsgServerPeer
impl Message for CMsgServerPeer
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 CMsgServerPeer
impl PartialEq for CMsgServerPeer
Source§impl Serialize for CMsgServerPeer
impl Serialize for CMsgServerPeer
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for CMsgServerPeer
impl Eq for CMsgServerPeer
impl StructuralPartialEq for CMsgServerPeer
Auto Trait Implementations§
impl Freeze for CMsgServerPeer
impl RefUnwindSafe for CMsgServerPeer
impl Send for CMsgServerPeer
impl Sync for CMsgServerPeer
impl Unpin for CMsgServerPeer
impl UnwindSafe for CMsgServerPeer
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.