pub struct RunEndRecord {
pub schema_version: u32,
pub run_id: RunId,
pub elapsed_us: u128,
pub valid: bool,
pub dropped_records: u64,
pub records_written: u64,
}Expand description
Parsed run_end line.
§Examples
use ailloli_ui_bench::{RunEndRecord, RunId, SCHEMA_VERSION};
let record = RunEndRecord {
schema_version: SCHEMA_VERSION,
run_id: RunId::new("run"),
elapsed_us: 100,
valid: true,
dropped_records: 0,
records_written: 3,
};
assert!(record.valid);Fields§
§schema_version: u32Wire schema version used to encode this record.
run_id: RunIdRun identity shared by every record in the file.
elapsed_us: u128Microseconds since the run’s declared TimeOrigin.
valid: boolWhether the run remained suitable for gate comparison.
dropped_records: u64Records rejected because the bounded writer queue was full.
records_written: u64Records serialized before this terminal record, excluding run_end.
Trait Implementations§
Source§impl Clone for RunEndRecord
impl Clone for RunEndRecord
Source§fn clone(&self) -> RunEndRecord
fn clone(&self) -> RunEndRecord
Returns a copy of the value. Read more
1.0.0 · 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 RunEndRecord
impl Debug for RunEndRecord
Source§impl<'de> Deserialize<'de> for RunEndRecord
impl<'de> Deserialize<'de> for RunEndRecord
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 RunEndRecord
impl RefUnwindSafe for RunEndRecord
impl Send for RunEndRecord
impl Sync for RunEndRecord
impl Unpin for RunEndRecord
impl UnwindSafe for RunEndRecord
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