fast_pull/base/
event.rs

1use crate::ProgressEntry;
2
3pub type WorkerId = usize;
4
5#[derive(Debug)]
6pub enum Event<PullError, PushError> {
7    Pulling(WorkerId),
8    PullError(WorkerId, PullError),
9    PullProgress(WorkerId, ProgressEntry),
10    PushError(WorkerId, PushError),
11    PushProgress(WorkerId, ProgressEntry),
12    FlushError(PushError),
13    Finished(WorkerId),
14}