pub enum PoolEvent {
LaneStarted {
lane: usize,
},
ChunkMerged {
lane: usize,
range: SampleRange,
done: u32,
total_done: u32,
target: u32,
},
LaneFailed {
lane: usize,
error: String,
returned: SampleRange,
consecutive_failures: u32,
pause: Option<Duration>,
},
LaneRetired {
lane: usize,
consecutive_failures: u32,
},
LaneFinished {
lane: usize,
chunks: u32,
samples: u32,
},
}Expand description
Something that happened during a LanePool run. lane is the index
LanePool::add_lane returned; LanePool::lane_name names it.
Events are delivered on the lane threads, concurrently, in no global order.
Variants§
LaneStarted
The lane’s thread started claiming work.
ChunkMerged
A chunk’s traced prefix was merged: progress.
Fields
§
range: SampleRangeThe chunk as claimed.
LaneFailed
A chunk ended short; its untraced tail went back to the cursor.
Fields
§
returned: SampleRangeThe tail returned to the cursor for any lane.
LaneRetired
The lane failed too often in a row and takes no more work this run.
LaneFinished
The lane stopped normally: nothing left to claim, or cancelled.
Trait Implementations§
impl Eq for PoolEvent
impl StructuralPartialEq for PoolEvent
Auto Trait Implementations§
impl Freeze for PoolEvent
impl RefUnwindSafe for PoolEvent
impl Send for PoolEvent
impl Sync for PoolEvent
impl Unpin for PoolEvent
impl UnsafeUnpin for PoolEvent
impl UnwindSafe for PoolEvent
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