#[non_exhaustive]pub enum RuntimeContractPolicy {
Show 19 variants
MaxBlockingThreadsWithinSupportedRange,
WorkerThreadsPositive,
MaxBlockingThreadsPositive,
ThreadNameNotBlank,
ThreadStackSizePositive,
BlockingMaxConcurrencyPositive,
BlockingMaxQueueDepthPositive,
BlockingTimeoutRepresentable,
BlockingGlobalCapacityCoversLanes,
ServiceContextScopeNotBlank,
ConfiguredMemoryLimitPositive,
MemoryFractionPositiveAndBounded,
ManagedMemoryRatioPositiveAndBounded,
ManagedMemoryHeadroomBelowEffectiveLimit,
ManagedMemoryBudgetPositive,
CriticalFailureSubscriptionCapacityPositive,
MetadataMaxPendingOperationsPositive,
MetadataMaxPendingBytesPositive,
MetadataBlockingTaskTimeoutPositive,
}Expand description
A closed identifier for a deterministic runtime contract rule.
New rules may be added in a minor release, so a match outside this crate
needs a wildcard arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MaxBlockingThreadsWithinSupportedRange
The configured maximum blocking threads is outside its supported range.
WorkerThreadsPositive
The configured worker-thread count must be positive.
MaxBlockingThreadsPositive
The configured maximum blocking-thread count must be positive.
ThreadNameNotBlank
The configured runtime thread name must not be blank.
ThreadStackSizePositive
The configured runtime thread-stack size must be positive.
BlockingMaxConcurrencyPositive
The blocking lane concurrency must be positive.
BlockingMaxQueueDepthPositive
The blocking lane queue depth must be positive.
BlockingTimeoutRepresentable
The combined blocking timeout must be representable.
BlockingGlobalCapacityCoversLanes
The global blocking capacity must cover every lane.
ServiceContextScopeNotBlank
A service-context scope must not be blank.
ConfiguredMemoryLimitPositive
An explicitly configured process memory limit must be positive.
MemoryFractionPositiveAndBounded
A process-memory fraction must be positive and bounded.
ManagedMemoryRatioPositiveAndBounded
A managed-memory ratio must be positive and bounded.
ManagedMemoryHeadroomBelowEffectiveLimit
Managed-memory headroom must leave a positive effective limit.
ManagedMemoryBudgetPositive
The managed memory budget must be positive.
CriticalFailureSubscriptionCapacityPositive
A critical failure subscription capacity must be positive.
MetadataMaxPendingOperationsPositive
The metadata I/O operation count must be positive.
MetadataMaxPendingBytesPositive
The metadata I/O byte capacity must be positive.
MetadataBlockingTaskTimeoutPositive
The metadata I/O blocking timeout must be positive.