pub enum BenchEvent {
RunStarted {
project_id: i64,
script_name: String,
run: BenchRun,
},
ResultRecorded {
project_id: i64,
script_name: String,
run_id: i64,
result: BenchResult,
},
RunFinished {
project_id: i64,
script_name: String,
run: BenchRun,
},
}Expand description
Hub-wire events for live bench runs, broadcast on the project /events
stream as HubEvent::Bench(..). Mirrors the server’s BenchEvent
(crates/akribes-server/src/models.rs) exactly: adjacently tagged
({"type":"RunStarted","payload":{...}}), three variants that reuse the
existing BenchRun / BenchResult row models.
Variants§
RunStarted
A bench run transitioned pending → running. Carries the row so
subscribers that didn’t cache the trigger response have it.
ResultRecorded
A single case result landed (workflow + judge complete, or a failure
was recorded). Sent before RunFinished so progress indicators can
update incrementally.
RunFinished
The coordinator reached a terminal status (completed / failed /
canceled). Final aggregates land on the row.
Trait Implementations§
Source§impl Clone for BenchEvent
impl Clone for BenchEvent
Source§fn clone(&self) -> BenchEvent
fn clone(&self) -> BenchEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BenchEvent
impl Debug for BenchEvent
Source§impl<'de> Deserialize<'de> for BenchEvent
impl<'de> Deserialize<'de> for BenchEvent
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 BenchEvent
impl RefUnwindSafe for BenchEvent
impl Send for BenchEvent
impl Sync for BenchEvent
impl Unpin for BenchEvent
impl UnsafeUnpin for BenchEvent
impl UnwindSafe for BenchEvent
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