pub struct TickUnwrapper { /* private fields */ }Implementations§
Source§impl TickUnwrapper
impl TickUnwrapper
Sourcepub fn reset(&mut self)
pub fn reset(&mut self)
Forget the old tick epoch; the next observation starts from its raw u32.
Call alongside ClientClock::reset and history reset at reconnect,
after ensuring old-session ticks cannot be delivered. See module recipe.
pub fn observe(&mut self, tick: u32) -> Option<u64>
pub fn project(&self, tick: u32) -> Option<u64>
Trait Implementations§
Source§impl Clone for TickUnwrapper
impl Clone for TickUnwrapper
Source§fn clone(&self) -> TickUnwrapper
fn clone(&self) -> TickUnwrapper
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TickUnwrapper
impl Debug for TickUnwrapper
Source§impl Default for TickUnwrapper
impl Default for TickUnwrapper
Source§fn default() -> TickUnwrapper
fn default() -> TickUnwrapper
Returns the “default value” for a type. Read more
impl Copy for TickUnwrapper
Auto Trait Implementations§
impl Freeze for TickUnwrapper
impl RefUnwindSafe for TickUnwrapper
impl Send for TickUnwrapper
impl Sync for TickUnwrapper
impl Unpin for TickUnwrapper
impl UnwindSafe for TickUnwrapper
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