pub struct NetworkStats { /* private fields */ }Implementations§
Source§impl NetworkStats
impl NetworkStats
pub fn new() -> Self
pub fn record_rtt(&mut self, player: PlayerId, rtt_ms: f32)
pub fn recommended_input_delay(&self) -> usize
pub fn peer(&self, player: PlayerId) -> Option<&PeerStats>
pub fn average_rtt(&self) -> f32
pub fn update_frame(&mut self, frame: Frame)
Auto Trait Implementations§
impl Freeze for NetworkStats
impl RefUnwindSafe for NetworkStats
impl Send for NetworkStats
impl Sync for NetworkStats
impl Unpin for NetworkStats
impl UnsafeUnpin 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