pub struct ServerClockRuntime { /* private fields */ }Expand description
Gateway-level server-clock runtime boundary.
This owns both the login-derived offset and the injectable clock provider.
Startup and handler registration paths should use this bundle instead of
reaching into GatewayBridge for raw offset/clock fields.
Implementations§
Source§impl ServerClockRuntime
impl ServerClockRuntime
pub fn new() -> Self
pub fn offset_secs(&self) -> Arc<AtomicI64> ⓘ
pub fn store_offset_secs(&self, offset_secs: i64)
pub fn clock(&self) -> Arc<dyn ServerClock>
pub fn set_clock_for_tests(&self, clock: Arc<dyn ServerClock>)
Trait Implementations§
Source§impl Debug for ServerClockRuntime
impl Debug for ServerClockRuntime
Auto Trait Implementations§
impl !Freeze for ServerClockRuntime
impl !RefUnwindSafe for ServerClockRuntime
impl Send for ServerClockRuntime
impl Sync for ServerClockRuntime
impl Unpin for ServerClockRuntime
impl UnsafeUnpin for ServerClockRuntime
impl !UnwindSafe for ServerClockRuntime
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