pub(crate) enum ClockAdjustment {
None,
Slew(i128),
Step(i128),
Anchor(i128),
}Expand description
What the clock decided to do at the end of one drift window.
Variants§
None
Leave the timeline alone.
Slew(i128)
Move the timeline by this many nanoseconds, at most CLOCK_MAX_SLEW_NS.
Step(i128)
Move the timeline by this many nanoseconds in one jump (a clock step).
Anchor(i128)
Correct the initial anchor by this many nanoseconds, once per run.
Trait Implementations§
Source§impl Clone for ClockAdjustment
impl Clone for ClockAdjustment
Source§fn clone(&self) -> ClockAdjustment
fn clone(&self) -> ClockAdjustment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClockAdjustment
Source§impl Debug for ClockAdjustment
impl Debug for ClockAdjustment
impl Eq for ClockAdjustment
Source§impl PartialEq for ClockAdjustment
impl PartialEq for ClockAdjustment
impl StructuralPartialEq for ClockAdjustment
Auto Trait Implementations§
impl Freeze for ClockAdjustment
impl RefUnwindSafe for ClockAdjustment
impl Send for ClockAdjustment
impl Sync for ClockAdjustment
impl Unpin for ClockAdjustment
impl UnsafeUnpin for ClockAdjustment
impl UnwindSafe for ClockAdjustment
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