pub enum ReplaySpeed {
Instant,
Paced {
factor: f64,
max_gap: Duration,
},
}Expand description
Variants§
Instant
As fast as the consumer reads. For backtests and tests.
Paced
At the recorded pace divided by factor: 1.0 is real time, 10.0 is ten times faster.
The pace is the difference of rx_ts of neighbouring envelopes. A pause is never longer
than max_gap, so a night between two sessions does not stop the replay.
Trait Implementations§
Source§impl Clone for ReplaySpeed
impl Clone for ReplaySpeed
Source§fn clone(&self) -> ReplaySpeed
fn clone(&self) -> ReplaySpeed
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 ReplaySpeed
Source§impl Debug for ReplaySpeed
impl Debug for ReplaySpeed
Source§impl Default for ReplaySpeed
impl Default for ReplaySpeed
Source§fn default() -> ReplaySpeed
fn default() -> ReplaySpeed
Returns the “default value” for a type. Read more
Source§impl PartialEq for ReplaySpeed
impl PartialEq for ReplaySpeed
Source§fn eq(&self, other: &ReplaySpeed) -> bool
fn eq(&self, other: &ReplaySpeed) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReplaySpeed
Auto Trait Implementations§
impl Freeze for ReplaySpeed
impl RefUnwindSafe for ReplaySpeed
impl Send for ReplaySpeed
impl Sync for ReplaySpeed
impl Unpin for ReplaySpeed
impl UnsafeUnpin for ReplaySpeed
impl UnwindSafe for ReplaySpeed
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