pub enum ResidualSource {
Latency,
Throughput,
ErrorRate,
QueueDepth,
HeartbeatRtt,
PollDuration,
MemoryUsage,
SerdeLatency,
FlowControlWindow,
DnsLatency,
Custom(&'static str),
}Expand description
Source type for a residual measurement.
Each variant represents a distinct telemetry channel from which residuals are derived. The observer computes residual signs independently per source, then correlates across sources in the grammar layer.
Variants§
Latency
Request/response latency (e.g., p50, p95, p99 in nanoseconds).
Throughput
Operations per second or bytes per second throughput.
ErrorRate
Error rate (errors per total requests in a window).
QueueDepth
Queue depth for bounded channels or task queues.
HeartbeatRtt
Consensus heartbeat round-trip time (e.g., Raft leader→follower).
PollDuration
Async runtime task poll duration.
MemoryUsage
Resident set size or heap allocation rate.
SerdeLatency
Serialization/deserialization throughput or latency.
FlowControlWindow
gRPC/HTTP2 flow control window utilization.
DnsLatency
DNS resolution latency.
Custom(&'static str)
Custom user-defined source with a static label.
Trait Implementations§
Source§impl Clone for ResidualSource
impl Clone for ResidualSource
Source§fn clone(&self) -> ResidualSource
fn clone(&self) -> ResidualSource
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 ResidualSource
Source§impl Debug for ResidualSource
impl Debug for ResidualSource
impl Eq for ResidualSource
Source§impl Hash for ResidualSource
impl Hash for ResidualSource
Source§impl PartialEq for ResidualSource
impl PartialEq for ResidualSource
Source§fn eq(&self, other: &ResidualSource) -> bool
fn eq(&self, other: &ResidualSource) -> bool
self and other values to be equal, and is used by ==.