pub struct BackfillProgress {
pub total_segments: usize,
pub completed_segments: usize,
pub failed_segments: usize,
pub total_blocks: u64,
pub processed_blocks: u64,
pub total_events: u64,
pub elapsed: Duration,
}Expand description
A point-in-time snapshot of backfill progress.
Fields§
§total_segments: usizeTotal number of segments in the job.
completed_segments: usizeSegments that have finished successfully.
failed_segments: usizeSegments that exhausted all retries.
total_blocks: u64Total blocks in the range (including any failed segments).
processed_blocks: u64Blocks whose events have been successfully collected.
total_events: u64Total events seen so far.
elapsed: DurationElapsed time since the backfill started.
Implementations§
Source§impl BackfillProgress
impl BackfillProgress
Sourcepub fn blocks_per_second(&self) -> f64
pub fn blocks_per_second(&self) -> f64
Throughput in blocks per second over the elapsed window.
Returns 0.0 if elapsed is zero.
Sourcepub fn eta(&self) -> Duration
pub fn eta(&self) -> Duration
Estimated time remaining based on current throughput.
Returns Duration::ZERO if already complete or throughput is zero.
Sourcepub fn percent_complete(&self) -> f64
pub fn percent_complete(&self) -> f64
Fraction of blocks processed, expressed as a percentage in [0.0, 100.0].
Trait Implementations§
Source§impl Clone for BackfillProgress
impl Clone for BackfillProgress
Source§fn clone(&self) -> BackfillProgress
fn clone(&self) -> BackfillProgress
Returns a duplicate of the value. Read more
1.0.0 · 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 BackfillProgress
impl Debug for BackfillProgress
Source§impl<'de> Deserialize<'de> for BackfillProgress
impl<'de> Deserialize<'de> for BackfillProgress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BackfillProgress
impl RefUnwindSafe for BackfillProgress
impl Send for BackfillProgress
impl Sync for BackfillProgress
impl Unpin for BackfillProgress
impl UnsafeUnpin for BackfillProgress
impl UnwindSafe for BackfillProgress
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