pub struct LeanProgressEvent {
pub phase: &'static str,
pub current: u64,
pub total: Option<u64>,
pub elapsed: Duration,
}Expand description
One structured progress observation from a LeanSession operation.
Events are delivered synchronously on the Lean-bound worker thread.
current is phase-local and monotonically non-decreasing within one
phase. total = None means the operation can report a phase-local
counter but does not know the final bound cheaply.
Fields§
§phase: &'static strStable phase label for the current operation.
current: u64Phase-local progress counter.
total: Option<u64>Optional phase-local total.
elapsed: DurationTime elapsed since this phase started.
Trait Implementations§
Source§impl Clone for LeanProgressEvent
impl Clone for LeanProgressEvent
Source§fn clone(&self) -> LeanProgressEvent
fn clone(&self) -> LeanProgressEvent
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 moreSource§impl Debug for LeanProgressEvent
impl Debug for LeanProgressEvent
Source§impl PartialEq for LeanProgressEvent
impl PartialEq for LeanProgressEvent
Source§fn eq(&self, other: &LeanProgressEvent) -> bool
fn eq(&self, other: &LeanProgressEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LeanProgressEvent
impl Eq for LeanProgressEvent
impl StructuralPartialEq for LeanProgressEvent
Auto Trait Implementations§
impl Freeze for LeanProgressEvent
impl RefUnwindSafe for LeanProgressEvent
impl Send for LeanProgressEvent
impl Sync for LeanProgressEvent
impl Unpin for LeanProgressEvent
impl UnsafeUnpin for LeanProgressEvent
impl UnwindSafe for LeanProgressEvent
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