pub struct TickSyncReport {
pub round_trip_time: Duration,
pub network_round_trip_time: Duration,
pub one_way_delay: Duration,
pub raw_offset_ticks: f64,
pub offset_ticks: f64,
pub estimated_server_tick: f64,
pub recommended_input_tick: u64,
}Expand description
Updated estimates returned after accepting one Tick sample.
Fields§
§round_trip_time: DurationTotal client-observed request/response duration.
network_round_trip_time: DurationRound-trip duration after subtracting server processing time.
one_way_delay: DurationEstimated one-way network delay.
raw_offset_ticks: f64Unsmoothed server-minus-client Tick offset from this sample.
offset_ticks: f64Current smoothed server-minus-client Tick offset.
estimated_server_tick: f64Estimated server Tick at client response receipt.
recommended_input_tick: u64Recommended future authoritative Tick for the next client input.
Trait Implementations§
Source§impl Clone for TickSyncReport
impl Clone for TickSyncReport
Source§fn clone(&self) -> TickSyncReport
fn clone(&self) -> TickSyncReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TickSyncReport
Source§impl Debug for TickSyncReport
impl Debug for TickSyncReport
Source§impl PartialEq for TickSyncReport
impl PartialEq for TickSyncReport
impl StructuralPartialEq for TickSyncReport
Auto Trait Implementations§
impl Freeze for TickSyncReport
impl RefUnwindSafe for TickSyncReport
impl Send for TickSyncReport
impl Sync for TickSyncReport
impl Unpin for TickSyncReport
impl UnsafeUnpin for TickSyncReport
impl UnwindSafe for TickSyncReport
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