#[non_exhaustive]pub enum BenchWriteError {
Closed,
QueueFull,
WriterStopped,
NonFiniteValue {
field: &'static str,
},
Serialize(Error),
Write(Error),
Flush(Error),
Sync(Error),
WriterPanicked,
DestinationExists(PathBuf),
Publish(Error),
InvalidRun {
staging_path: PathBuf,
dropped_records: u64,
},
}Expand description
Failure while recording or finalizing a benchmark run.
Queue overflow and non-finite input increment dropped_records, so the
staging artifact remains diagnostic but cannot be published as gate-valid.
§Examples
let error = ailloli_ui_bench::BenchWriteError::QueueFull;
assert!(error.to_string().contains("run is invalid"));Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Closed
The session no longer accepts records or was already finished.
QueueFull
Nonblocking enqueue found the bounded queue full.
WriterStopped
Writer channel disconnected or the writer previously failed.
NonFiniteValue
A finite-number invariant failed before JSON serialization.
Serialize(Error)
JSON serialization failed.
Write(Error)
Staging-file write failed.
Flush(Error)
Periodic or final buffer flush failed.
Sync(Error)
Final staging-file sync_all failed.
WriterPanicked
Joining the writer observed a panic.
DestinationExists(PathBuf)
Another actor created the destination during the run.
Publish(Error)
Final staging-file rename failed.
InvalidRun
One or more records were dropped, so only the diagnostic staging artifact remains.