pub struct ReplayProgress {
pub current_time: DateTime<Utc>,
pub bars_played: usize,
pub total_bars: usize,
pub ticks_processed: u64,
pub progress_pct: f32,
}Expand description
Progress information for replay (tick-file replay)
Fields§
§current_time: DateTime<Utc>Market time reached by playback.
bars_played: usizeNumber of bars processed so far.
total_bars: usizeTotal number of bars available for playback.
ticks_processed: u64Number of executions processed so far.
progress_pct: f32Playback progress in percent.
Implementations§
Source§impl ReplayProgress
impl ReplayProgress
Sourcepub fn progress_pct(&self) -> f64
pub fn progress_pct(&self) -> f64
Bars played divided by total bars, or zero when the total is zero.
Unlike the progress_pct field, this method returns a fraction, not percent.
Trait Implementations§
Source§impl Clone for ReplayProgress
impl Clone for ReplayProgress
Source§fn clone(&self) -> ReplayProgress
fn clone(&self) -> ReplayProgress
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 moreAuto Trait Implementations§
impl Freeze for ReplayProgress
impl RefUnwindSafe for ReplayProgress
impl Send for ReplayProgress
impl Sync for ReplayProgress
impl Unpin for ReplayProgress
impl UnsafeUnpin for ReplayProgress
impl UnwindSafe for ReplayProgress
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more