use std::time::Duration;
pub(crate) struct Name {
pub(crate) from: String,
pub(crate) out: String,
}
pub(crate) enum Event {
Plan {
job: usize,
concurrency: u16,
cache: usize,
},
Hit,
Grow,
Skip,
Start { id: u32, name: Name },
Text { id: u32, text: String, reply: bool },
Retry {
id: u32,
nth: usize,
total: usize,
wait: Duration,
base: String,
err: String,
},
End {
id: u32,
err: Option<String>,
active: Duration,
},
Log(String),
Close,
}