pub struct StepProgress { /* private fields */ }Expand description
Shared atomic progress state. Written by the sim thread, read by the TUI.
Implementations§
Source§impl StepProgress
impl StepProgress
Sourcepub fn set_sub_step(&self, current: u8, total: u8)
pub fn set_sub_step(&self, current: u8, total: u8)
Set sub-step index and total (e.g. 2 of 5 for Strang).
Sourcepub fn set_intra_progress(&self, done: u64, total: u64)
pub fn set_intra_progress(&self, done: u64, total: u64)
Set intra-phase work units (e.g. grid cells processed).
Sourcepub fn start_step(&self)
pub fn start_step(&self)
Mark the start of a new step (resets timer).
Sourcepub fn read(&self) -> ProgressSnapshot
pub fn read(&self) -> ProgressSnapshot
Read a consistent-enough snapshot (all Relaxed loads).
Auto Trait Implementations§
impl !Freeze for StepProgress
impl RefUnwindSafe for StepProgress
impl Send for StepProgress
impl Sync for StepProgress
impl Unpin for StepProgress
impl UnsafeUnpin for StepProgress
impl UnwindSafe for StepProgress
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
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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