pub struct ServerTimeAnchorStore { /* private fields */ }Expand description
Shared server-time source.
HTTP auth supplies the initial offset-only fallback. A complete Platform
TCP login or heartbeat replaces it with a precise server timestamp plus a
monotonic capture point, matching C++ server_time_ + system_uptime_.
Implementations§
Source§impl ServerTimeAnchorStore
impl ServerTimeAnchorStore
pub fn new() -> Self
pub fn store_offset_micros(&self, offset_micros: i64)
pub fn store_projection( &self, projection: ServerTimeProjection, captured_at: Instant, )
pub fn store_update(&self, update: ServerTimeAnchorUpdate)
pub fn now_unix_micros_at( &self, local_now_unix_micros: i64, now: Instant, ) -> i64
pub fn offset_micros_at(&self, local_now_unix_micros: i64, now: Instant) -> i64
Trait Implementations§
Source§impl Debug for ServerTimeAnchorStore
impl Debug for ServerTimeAnchorStore
Auto Trait Implementations§
impl !Freeze for ServerTimeAnchorStore
impl !RefUnwindSafe for ServerTimeAnchorStore
impl Send for ServerTimeAnchorStore
impl Sync for ServerTimeAnchorStore
impl Unpin for ServerTimeAnchorStore
impl UnsafeUnpin for ServerTimeAnchorStore
impl UnwindSafe for ServerTimeAnchorStore
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