#[non_exhaustive]pub enum ContextDeleteEffect {
Purged,
Retained,
Lapses,
Unrelated,
}Expand description
What happens to a keyspace’s context-scoped contents when that context is
deleted (vta/contexts/delete).
The question that matters is narrower than “is this tidy”: a context can be
created again under the same id, and anything keyed by (or carrying) the
old id that survives the deletion is inherited by the new one. That has
happened twice — application state syncing a deleted profile’s personas back
(#2415), and a vetter engine record pinning the old member DID so the new
context’s vta/pcs/root-request failed with memberMismatch.
Same rail as DidDeleteEffect: every keyspace in ALL must be
classified, and vta-service’s context_delete_labels_match_the_cascade
test holds the Purged set to the list the
cascade itself declares, so a label cannot claim a purge the code does not do.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Purged
The context’s rows are removed with it.
Retained
Context-scoped rows are deliberately kept; the reason is beside each.
Lapses
Context-scoped rows are not removed, but each expires on its own within a bounded time, and none is found again through a recreated context.
Nothing here is scoped to a context.
Trait Implementations§
Source§impl Clone for ContextDeleteEffect
impl Clone for ContextDeleteEffect
impl Copy for ContextDeleteEffect
Source§impl Debug for ContextDeleteEffect
impl Debug for ContextDeleteEffect
impl Eq for ContextDeleteEffect
Source§impl PartialEq for ContextDeleteEffect
impl PartialEq for ContextDeleteEffect
impl StructuralPartialEq for ContextDeleteEffect
Auto Trait Implementations§
impl Freeze for ContextDeleteEffect
impl RefUnwindSafe for ContextDeleteEffect
impl Send for ContextDeleteEffect
impl Sync for ContextDeleteEffect
impl Unpin for ContextDeleteEffect
impl UnsafeUnpin for ContextDeleteEffect
impl UnwindSafe for ContextDeleteEffect
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.