pub struct LatencyGate {
pub measured_ns: u64,
pub threshold_ns: u64,
}Expand description
Structured wall-latency-gate evidence carried on a failing
AssertDetail so the host-side seam can re-run the
contention-aware tri-state verdict (the latency_verdict core in
vmm::freeze_coord).
The wall-latency ceilings fire IN-GUEST (assert_benchmarks runs
inside the VM), but the per-phase contention witness — the Body
dilation D and the peak-window host-contention series that bound
W(measured) — is measured HOST-side (in vmm::freeze_coord) and is
not available where the gate tripped. This struct rides the failing
detail across the wire so the host can pair the guest’s measured_ns
/ threshold_ns with its own witness and decide Pass / FailConfirmed
/ ContentionIndeterminate.
Set ONLY on ns-denominated latency ceilings where the tri-state is
sound (max_p99_wake_latency_ns): the p99 exemplar is a single
guest-wall interval whose contamination W bounds. NOT set on the CV
or off-CPU-spread gates — those are dimensionless (a ratio / a
percentage), not ns intervals, so the ns-denominated W bound cannot
score them; they stay annotate-only via dilation_annotation.
Fields§
§measured_ns: u64The guest-measured wall-latency exemplar that tripped the gate (ns).
threshold_ns: u64The ceiling it exceeded (ns).
Trait Implementations§
Source§impl Clone for LatencyGate
impl Clone for LatencyGate
Source§fn clone(&self) -> LatencyGate
fn clone(&self) -> LatencyGate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LatencyGate
impl Debug for LatencyGate
Source§impl<'de> Deserialize<'de> for LatencyGate
impl<'de> Deserialize<'de> for LatencyGate
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>,
Source§impl PartialEq for LatencyGate
impl PartialEq for LatencyGate
Source§impl Serialize for LatencyGate
impl Serialize for LatencyGate
impl Copy for LatencyGate
impl Eq for LatencyGate
impl StructuralPartialEq for LatencyGate
Auto Trait Implementations§
impl Freeze for LatencyGate
impl RefUnwindSafe for LatencyGate
impl Send for LatencyGate
impl Sync for LatencyGate
impl Unpin for LatencyGate
impl UnwindSafe for LatencyGate
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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