#[non_exhaustive]pub enum ConfigValidationError {
AggregatorMissingCompletionBound,
AggregatorMissingMemoryBound,
AggregatorTimeoutRequiresTtl,
ThrottlerMaxRequestsZero,
LoopConflictingCountAndWhile,
LoopMissingCountOrWhile,
SqlDynamicQueryWithoutAllowDynamic,
}Expand description
Typed security-validation error for fail-closed config/startup checks (ADR-0033).
Each variant corresponds to a specific Batch 1+ security validation that refuses
to start with a misconfigured or dangerous default. Operators can match on
these variants for programmatic error handling.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AggregatorMissingCompletionBound
AggregatorMissingMemoryBound
Raised when an Aggregator has none of: max_buckets, a Timeout completion condition, or a bucket_ttl. At least one memory-release bound is mandatory (R3-M2) so a unique-correlation-key flood cannot grow the bucket map without limit.
AggregatorTimeoutRequiresTtl
Raised when an Aggregator has a Timeout completion condition but no
bucket_ttl. The R3-M3 timeout-task cap may skip spawning a dedicated
timeout task under flood; without bucket_ttl there is no fallback
eviction path and the bucket leaks until shutdown. Requiring bucket_ttl
whenever Timeout is present makes the cap-skip degradation safe by
construction.
ThrottlerMaxRequestsZero
LoopConflictingCountAndWhile
LoopMissingCountOrWhile
SqlDynamicQueryWithoutAllowDynamic
Trait Implementations§
Source§impl Clone for ConfigValidationError
impl Clone for ConfigValidationError
Source§impl Debug for ConfigValidationError
impl Debug for ConfigValidationError
Source§impl Display for ConfigValidationError
impl Display for ConfigValidationError
impl Eq for ConfigValidationError
Source§impl Error for ConfigValidationError
impl Error for ConfigValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()