pub enum ReasonCode {
SustainedLatencyDrift,
ConsensusHeartbeatDegradation,
AsyncRuntimeStarvation,
ChannelBackpressureOnset,
PartialPartitionSignature,
ClockDriftDivergence,
MemoryPressureEscalation,
ThroughputDegradation,
SerializationDrift,
FlowControlExhaustion,
UnclassifiedStructuralAnomaly,
NoAnomaly,
}Expand description
Reason codes for distributed system structural interpretations.
Each variant encodes a specific structural pattern recognized by the
heuristics bank. UnclassifiedStructuralAnomaly is emitted when the
grammar state transitions to Boundary or Violation but no heuristic
entry matches.
Variants§
SustainedLatencyDrift
Sustained monotonic increase in latency residuals across multiple observation windows, consistent with resource exhaustion or degradation.
ConsensusHeartbeatDegradation
Consensus heartbeat round-trip time shows persistent directional drift toward election timeout boundary.
AsyncRuntimeStarvation
Tokio runtime task poll duration increasing monotonically, consistent with blocking operations in async context or runtime starvation.
ChannelBackpressureOnset
Bounded channel queue depth approaching capacity with characteristic drift-then-slew signature at backpressure onset.
PartialPartitionSignature
Asymmetric connectivity pattern: some node pairs communicate normally while others show persistent latency drift or packet loss.
ClockDriftDivergence
Clock source divergence between nodes producing monotonic drift in timestamp-derived residuals.
MemoryPressureEscalation
RSS or allocation rate showing persistent growth trajectory beyond admissibility envelope for the current workload phase.
ThroughputDegradation
Throughput (ops/sec or bytes/sec) showing persistent decline not attributable to workload reduction.
SerializationDrift
Serialization or deserialization latency increasing with characteristic step-change at payload size or schema version boundaries.
FlowControlExhaustion
gRPC or HTTP/2 flow control window approaching exhaustion with characteristic drift-then-violation pattern.
UnclassifiedStructuralAnomaly
Grammar state transitioned but no heuristic bank entry matched.
NoAnomaly
No anomaly detected. Residual trajectory remains within admissibility envelope. Grammar state is Admissible.
Implementations§
Source§impl ReasonCode
impl ReasonCode
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Returns a human-readable description of this reason code.
Trait Implementations§
Source§impl Clone for ReasonCode
impl Clone for ReasonCode
Source§fn clone(&self) -> ReasonCode
fn clone(&self) -> ReasonCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more