pub struct Observation {
pub outcome: &'static str,
pub rows: u64,
pub bytes: u64,
pub requests: u64,
pub debug_ms: u64,
pub error: Option<String>,
pub recorded: Option<Recorded>,
}Expand description
One starter query, actually run.
Fields§
§outcome: &'static stranswers (rows with bindings), vacuous (rows that bind nothing),
empty (no rows at all), or error (the run did not finish).
rows: u64§bytes: u64Bytes the run read, cold, open included.
requests: u64Range requests the run made, cold, open included.
debug_ms: u64Wall clock on the measuring machine — a reference, not a property of the
file. Read it next to bytes/requests, never on its own.
error: Option<String>§recorded: Option<Recorded>What the file’s own build record says this query cost — present only when the file carries one. That is the single case where a re-measurement has a known answer to check itself against, so it is checked, and the answer is reported rather than assumed.
Implementations§
Source§impl Observation
impl Observation
Sourcepub fn contradicts(&self, verdict: Verdict) -> bool
pub fn contradicts(&self, verdict: Verdict) -> bool
Does the observation contradict what the card alone concluded? Only
Answers and Empty are claims strong enough to be wrong; Suspect
and Undecidable say in so many words that they are not claims.
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
Source§fn clone(&self) -> Observation
fn clone(&self) -> Observation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more