pub enum StalenessRule {
AnyParentSuperseded,
EitherEndpointSuperseded,
OverHalfSuperseded,
ParentCountChanges,
FewerThanTwoRemain,
AnyParentSupersededOrNewConflict,
}Expand description
Staleness predicate — when the method’s output is flagged stale.
Variants§
AnyParentSuperseded
Flag stale if any parent is superseded.
EitherEndpointSuperseded
Flag stale if either of the two endpoint parents is superseded.
OverHalfSuperseded
Flag stale if more than 50% of parents are superseded.
ParentCountChanges
Flag stale when the entity count changes (e.g., parent membership gains / loses an item).
FewerThanTwoRemain
Flag stale when fewer than two non-superseded parents remain.
AnyParentSupersededOrNewConflict
Flag stale on any parent supersession OR when a new conflicting memory lands on the same conflict key.
Trait Implementations§
Source§impl Clone for StalenessRule
impl Clone for StalenessRule
Source§fn clone(&self) -> StalenessRule
fn clone(&self) -> StalenessRule
Returns a duplicate of the value. Read more
1.0.0 · 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 StalenessRule
impl Debug for StalenessRule
Source§impl PartialEq for StalenessRule
impl PartialEq for StalenessRule
impl Copy for StalenessRule
impl Eq for StalenessRule
impl StructuralPartialEq for StalenessRule
Auto Trait Implementations§
impl Freeze for StalenessRule
impl RefUnwindSafe for StalenessRule
impl Send for StalenessRule
impl Sync for StalenessRule
impl Unpin for StalenessRule
impl UnsafeUnpin for StalenessRule
impl UnwindSafe for StalenessRule
Blanket Implementations§
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.