pub enum TraceExtent {
Complete,
Partial,
}Expand description
Whether more calls may still arrive.
The rule language was first evaluated by a live proxy checking history-so-far, where a deadline not yet met may still be met by the next call. A metric evaluates a finished run, where it cannot. The two readings disagree on every rule with a window, and the difference is invisible in the rules and the trace – it is only in who is asking. So the caller states it rather than the evaluator assuming it. Porting the proxy’s reading into the metric silently is what made completed runs with an unmet deadline report as undecided.
Variants§
Complete
The run is over. An unmet deadline is a violation, because nothing further is coming.
Partial
More calls may follow. An unmet deadline whose window is still open has not decided.
Implementations§
Source§impl TraceExtent
impl TraceExtent
Sourcepub const fn label(self) -> &'static str
pub const fn label(self) -> &'static str
The stable string for this value.
Added with ADR-047, which carries the extent into evidence: assay.session.finding reports
whether the run it judged was finished, because a violation on a partial trace and one on a
finished run are different claims. Before that this enum had no rendering at all, so the
evidence payload would have invented its spellings – worse than duplicating a vocabulary,
because there is no source to drift from. Like RuleOutcome::label, this is an interface.
Trait Implementations§
Source§impl Clone for TraceExtent
impl Clone for TraceExtent
Source§fn clone(&self) -> TraceExtent
fn clone(&self) -> TraceExtent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TraceExtent
Source§impl Debug for TraceExtent
impl Debug for TraceExtent
impl Eq for TraceExtent
Source§impl PartialEq for TraceExtent
impl PartialEq for TraceExtent
impl StructuralPartialEq for TraceExtent
Auto Trait Implementations§
impl Freeze for TraceExtent
impl RefUnwindSafe for TraceExtent
impl Send for TraceExtent
impl Sync for TraceExtent
impl Unpin for TraceExtent
impl UnsafeUnpin for TraceExtent
impl UnwindSafe for TraceExtent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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