pub struct BackfillSegment {
pub id: usize,
pub from_block: u64,
pub to_block: u64,
pub status: SegmentStatus,
pub events_processed: u64,
pub duration: Option<Duration>,
pub error: Option<String>,
}Expand description
A single work unit covering a contiguous block sub-range.
Fields§
§id: usizeZero-based index within the ordered segment list.
from_block: u64First block (inclusive).
to_block: u64Last block (inclusive).
status: SegmentStatusCurrent processing status.
events_processed: u64Number of events collected from this segment.
duration: Option<Duration>Wall-clock time taken to process the segment (set on completion).
error: Option<String>Human-readable error message if the segment failed permanently.
Implementations§
Source§impl BackfillSegment
impl BackfillSegment
Sourcepub fn block_count(&self) -> u64
pub fn block_count(&self) -> u64
Total blocks covered by this segment.
Trait Implementations§
Source§impl Clone for BackfillSegment
impl Clone for BackfillSegment
Source§fn clone(&self) -> BackfillSegment
fn clone(&self) -> BackfillSegment
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 BackfillSegment
impl Debug for BackfillSegment
Source§impl<'de> Deserialize<'de> for BackfillSegment
impl<'de> Deserialize<'de> for BackfillSegment
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 BackfillSegment
impl RefUnwindSafe for BackfillSegment
impl Send for BackfillSegment
impl Sync for BackfillSegment
impl Unpin for BackfillSegment
impl UnsafeUnpin for BackfillSegment
impl UnwindSafe for BackfillSegment
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