pub struct Player {
pub steamid: Option<u64>,
pub remote_addr: Option<String>,
pub ping_avg_ms: Option<i32>,
pub packet_loss_pct: Option<f32>,
pub is_bot: Option<bool>,
pub loss_in: Option<f32>,
pub loss_out: Option<f32>,
pub engine_latency_ms: Option<i32>,
}Fields§
§steamid: Option<u64>§remote_addr: Option<String>§ping_avg_ms: Option<i32>§packet_loss_pct: Option<f32>§is_bot: Option<bool>§loss_in: Option<f32>§loss_out: Option<f32>§engine_latency_ms: Option<i32>Implementations§
Source§impl Player
impl Player
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 remote_addr(&self) -> &str
pub fn remote_addr(&self) -> &str
Returns the value of remote_addr, or the default value if remote_addr is unset.
Sourcepub fn ping_avg_ms(&self) -> i32
pub fn ping_avg_ms(&self) -> i32
Returns the value of ping_avg_ms, or the default value if ping_avg_ms is unset.
Sourcepub fn packet_loss_pct(&self) -> f32
pub fn packet_loss_pct(&self) -> f32
Returns the value of packet_loss_pct, or the default value if packet_loss_pct is unset.
Sourcepub fn is_bot(&self) -> bool
pub fn is_bot(&self) -> bool
Returns the value of is_bot, or the default value if is_bot is unset.
Sourcepub fn loss_in(&self) -> f32
pub fn loss_in(&self) -> f32
Returns the value of loss_in, or the default value if loss_in is unset.
Sourcepub fn loss_out(&self) -> f32
pub fn loss_out(&self) -> f32
Returns the value of loss_out, or the default value if loss_out is unset.
Sourcepub fn engine_latency_ms(&self) -> i32
pub fn engine_latency_ms(&self) -> i32
Returns the value of engine_latency_ms, or the default value if engine_latency_ms is unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Player
impl<'de> Deserialize<'de> for Player
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Player, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Player, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for Player
impl Message for Player
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 Serialize for Player
impl Serialize for Player
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 StructuralPartialEq for Player
Auto Trait Implementations§
impl Freeze for Player
impl RefUnwindSafe for Player
impl Send for Player
impl Sync for Player
impl Unpin for Player
impl UnwindSafe for Player
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)