pub struct ServerClock { /* private fields */ }Expand description
The Bybit server clock, estimated as the local clock plus an offset.
Cloning is cheap and clones share the offset: pass
http::Client::clock to
ws::Config::server_clock so that the
stream auth uses the offset measured by
http::Client::sync_time.
Implementations§
Source§impl ServerClock
impl ServerClock
Sourcepub fn set_offset(&self, offset_ms: i64)
pub fn set_offset(&self, offset_ms: i64)
Set the offset (server clock minus local clock), milliseconds.
Trait Implementations§
Source§impl Clone for ServerClock
impl Clone for ServerClock
Source§impl Debug for ServerClock
impl Debug for ServerClock
Auto Trait Implementations§
impl Freeze for ServerClock
impl RefUnwindSafe for ServerClock
impl Send for ServerClock
impl Sync for ServerClock
impl Unpin for ServerClock
impl UnsafeUnpin for ServerClock
impl UnwindSafe for ServerClock
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