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§impl Debug for Observation
impl Debug for Observation
Auto Trait Implementations§
impl Freeze for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnsafeUnpin for Observation
impl UnwindSafe for Observation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more