#[non_exhaustive]pub enum ExperienceStoreError {
ZeroFailureLimit,
IdentityConflict {
subject: EntityId,
action_id: String,
case_id: String,
stage: VerificationStage,
},
SequenceOverflow,
InvalidSequence {
expected: u64,
actual: u64,
},
InvalidNextSequence {
expected: u64,
actual: u64,
},
DuplicateObservation,
IncompatibleDisposition {
status: OutcomeStatus,
disposition: ExperienceDisposition,
},
}Expand description
Validation and consistency errors raised by the experience store.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ZeroFailureLimit
A suppression threshold of zero would suppress an action before it ran.
IdentityConflict
The same subject, action, case, and stage identified a different outcome or disposition.
Fields
§
stage: VerificationStageVerification stage whose result changed.
SequenceOverflow
The monotonically increasing observation sequence overflowed.
InvalidSequence
Persisted experience records were not contiguous and ordered.
InvalidNextSequence
Persisted next-sequence state did not follow the final record.
DuplicateObservation
Persisted state contained the same immutable observation more than once.
IncompatibleDisposition
A caller attached a disposition that contradicts the verifier outcome.
Fields
§
status: OutcomeStatusVerifier status carried by the outcome.
§
disposition: ExperienceDispositionExperience classification rejected by the store.
Trait Implementations§
Source§impl Clone for ExperienceStoreError
impl Clone for ExperienceStoreError
Source§fn clone(&self) -> ExperienceStoreError
fn clone(&self) -> ExperienceStoreError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExperienceStoreError
impl Debug for ExperienceStoreError
Source§impl Display for ExperienceStoreError
impl Display for ExperienceStoreError
impl Eq for ExperienceStoreError
Source§impl Error for ExperienceStoreError
impl Error for ExperienceStoreError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ExperienceStoreError> for DecisionLoopError
impl From<ExperienceStoreError> for DecisionLoopError
Source§fn from(source: ExperienceStoreError) -> Self
fn from(source: ExperienceStoreError) -> Self
Converts to this type from the input type.
Source§impl From<ExperienceStoreError> for StandardWebDecisionRuntimeError
impl From<ExperienceStoreError> for StandardWebDecisionRuntimeError
Source§fn from(source: ExperienceStoreError) -> Self
fn from(source: ExperienceStoreError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExperienceStoreError
impl PartialEq for ExperienceStoreError
impl StructuralPartialEq for ExperienceStoreError
Auto Trait Implementations§
impl Freeze for ExperienceStoreError
impl RefUnwindSafe for ExperienceStoreError
impl Send for ExperienceStoreError
impl Sync for ExperienceStoreError
impl Unpin for ExperienceStoreError
impl UnsafeUnpin for ExperienceStoreError
impl UnwindSafe for ExperienceStoreError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more