pub struct NetworkStats {
pub ping: Duration,
pub send_queue_len: usize,
pub recv_queue_len: usize,
pub kbps_sent: u32,
pub local_frames_behind: i32,
pub remote_frames_behind: i32,
}Expand description
Event that occurs during the course of a session.
Fields§
§ping: DurationThe round time trip duration between the local player and the remote.
send_queue_len: usizeThe number of outgoing messages currently not sent.
recv_queue_len: usizeThe number of incoming messages currently not processed.
kbps_sent: u32The number of kilobytes sent per second, a rolling average.
local_frames_behind: i32The local frame advantage relative to the associated peer.
remote_frames_behind: i32The remote frame advantage of the associated peer relative to the local player.
Trait Implementations§
Source§impl Clone for NetworkStats
impl Clone for NetworkStats
Source§fn clone(&self) -> NetworkStats
fn clone(&self) -> NetworkStats
Returns a duplicate of the value. Read more
1.0.0 · 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 NetworkStats
impl Debug for NetworkStats
Source§impl Default for NetworkStats
impl Default for NetworkStats
Source§fn default() -> NetworkStats
fn default() -> NetworkStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NetworkStats
impl RefUnwindSafe for NetworkStats
impl Send for NetworkStats
impl Sync for NetworkStats
impl Unpin for NetworkStats
impl UnwindSafe for NetworkStats
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