pub struct StateClock { /* private fields */ }Expand description
State clock (τs) - elastic, drift-correctable, convergence-oriented CAN be bent for convergence, but maintains causality
Implementations§
Source§impl StateClock
impl StateClock
Sourcepub fn advance(&mut self, dt: Duration) -> StateTime
pub fn advance(&mut self, dt: Duration) -> StateTime
Advance the clock by a duration, applying rate and convergence Returns the new state time
Sourcepub fn set_convergence_target(&mut self, target: StateTime)
pub fn set_convergence_target(&mut self, target: StateTime)
Set convergence target
Sourcepub fn clear_convergence_target(&mut self)
pub fn clear_convergence_target(&mut self)
Clear convergence target
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StateClock
impl RefUnwindSafe for StateClock
impl Send for StateClock
impl Sync for StateClock
impl Unpin for StateClock
impl UnsafeUnpin for StateClock
impl UnwindSafe for StateClock
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