pub enum ModelContractViolation {
Show 17 variants
AttributeCreateRequiresAdd,
AttributeDeleteTargetsMissingKey,
AttributeOperationKeyHasUnsupportedForm,
AttributeOperationSetContainsDuplicateKey,
AttributeOperationKeyIsInvalid,
AttributeOperationTargetsUnsupportedKey,
AttributeUpdateTargetsImmutableAttribute,
AttributeValueDoesNotSatisfyRules,
InvalidCleanupPolicy,
InvalidCqType,
MissingTimerDeliveryProperty,
InvalidTimerProperty {
property: &'static str,
},
UnsupportedTimerPrecision {
precision_ms: u64,
},
TimerDeliveryArithmeticOverflow,
TimerDeliveryTimeIsNotInFuture {
deliver_ms: u64,
now_ms: u64,
},
TimerDelayExceedsMaximum {
delay_ms: u64,
max_delay_ms: u64,
},
InvalidPopRetryPolicyState,
}Expand description
Deterministic validation failure at the runtime-neutral model boundary.
The public messages are fixed. Variant fields retain only static schema identifiers and numeric admission evidence.
Variants§
AttributeCreateRequiresAdd
A topic-creation attribute operation did not use the add form.
AttributeDeleteTargetsMissingKey
An attribute delete operation named a key that is not present.
AttributeOperationKeyHasUnsupportedForm
An attribute operation key did not have a supported form.
AttributeOperationSetContainsDuplicateKey
An attribute operation set contains the same key more than once.
AttributeOperationKeyIsInvalid
An attribute operation key is structurally invalid.
AttributeOperationTargetsUnsupportedKey
An attribute operation named an unsupported key.
AttributeUpdateTargetsImmutableAttribute
An attribute update targeted an immutable attribute.
AttributeValueDoesNotSatisfyRules
An attribute value does not satisfy the selected attribute’s rules.
InvalidCleanupPolicy
A cleanup-policy parser input did not name a supported policy.
InvalidCqType
A consume-queue type parser input did not name a supported type.
MissingTimerDeliveryProperty
A timer request did not specify a supported delivery property.
InvalidTimerProperty
A timer property does not contain an unsigned integer.
UnsupportedTimerPrecision
A timer precision is not supported by the Java-compatible timer engine.
TimerDeliveryArithmeticOverflow
Checked timer-delivery arithmetic overflowed.
TimerDeliveryTimeIsNotInFuture
A timer delivery timestamp is not later than the caller’s clock sample.
Fields
TimerDelayExceedsMaximum
A timer delay exceeds the configured admission horizon.
Fields
InvalidPopRetryPolicyState
A POP retry policy does not describe a supported migration state.
Implementations§
Source§impl ModelContractViolation
impl ModelContractViolation
Sourcepub const fn condition(&self) -> CanonicalCondition
pub const fn condition(&self) -> CanonicalCondition
Returns the canonical condition for every model contract rejection.
Trait Implementations§
Source§impl Clone for ModelContractViolation
impl Clone for ModelContractViolation
Source§impl Debug for ModelContractViolation
impl Debug for ModelContractViolation
Source§impl Display for ModelContractViolation
impl Display for ModelContractViolation
impl Eq for ModelContractViolation
Source§impl Error for ModelContractViolation
impl Error for ModelContractViolation
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()