pub enum BenchRunEvent {
Result(Box<BenchResult>),
Lagged {
dropped: u64,
},
Terminal {
status: String,
},
}Expand description
A typed event from the live SSE bench-run stream
(GET /bench-runs/{id}/events, Accept: text/event-stream).
The server emits three named SSE event types on this path
(crates/akribes-server/src/handlers/bench.rs::bench_run_events):
result— a freshly-recorded per-caseBenchResultrow.lagged— the broadcast subscriber fell behind and droppednresults ({"dropped":N}); re-fetch/bench-runs/{id}/resultsfor the authoritative set.terminal— the run reached a terminal status ({"status":"..."}); the stream ends after this frame.statusis one of thebench_runs.statusvalues (completed,failed,canceled, orunknownif the row vanished).
Mirrors the TS SDK’s subscribeRunEvents handler dispatch
(packages/akribes-sdk-ts/src/sub/bench.ts), with terminal lifted
into a typed variant so Rust consumers can detect end-of-stream
without a side-channel.
Variants§
Result(Box<BenchResult>)
A new per-case result row was recorded.
Lagged
The broadcast subscriber lagged and dropped dropped results.
Terminal
The run reached a terminal status; the stream ends after this.
Trait Implementations§
Source§impl Clone for BenchRunEvent
impl Clone for BenchRunEvent
Source§fn clone(&self) -> BenchRunEvent
fn clone(&self) -> BenchRunEvent
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 moreAuto Trait Implementations§
impl Freeze for BenchRunEvent
impl RefUnwindSafe for BenchRunEvent
impl Send for BenchRunEvent
impl Sync for BenchRunEvent
impl Unpin for BenchRunEvent
impl UnsafeUnpin for BenchRunEvent
impl UnwindSafe for BenchRunEvent
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