Struct backroll::NetworkStats
source · [−]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
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for NetworkStats
impl Send for NetworkStats
impl Sync for NetworkStats
impl Unpin for NetworkStats
impl UnwindSafe for NetworkStats
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more