Enum ChangeEvent
pub enum ChangeEvent {
Add(CaughtNode),
Remove(CaughtNode),
Edit {
old: OwnedRow,
row: OwnedRow,
},
Child {
row: OwnedRow,
rel: RelId,
change: Box<CaughtChange>,
},
}Expand description
An owned, fully-materialized change event off the pipeline — the raw delta the
engine emits (re-exported from the engine, where it is CaughtChange). Nested
relationships are carried in NodeData::relationships.
A caught downstream change. Mirrors catch.ts expandChange output: an
Edit carries only the two rows (no node, catch.ts:104-109); a Child
carries the parent row, the relationship slot, and the nested change
(catch.ts:110-118).
Variants§
Implementations§
§impl CaughtChange
impl CaughtChange
pub fn root_row(&self) -> &OwnedRow
pub fn root_row(&self) -> &OwnedRow
The root row this change is routed by: the node’s row for Add/Remove, the
new row for Edit (a partition-key change never reaches a consumer as an Edit —
the source splits it — so old agrees on every routing column), and the
parent row for Child (the outermost Child of a nested change carries the
top-level row). This is what a parameterized query family’s consumer demuxes
partitions by (design 310 §4.2 / impl plan D8): every change is routable by a
column read of this row.
Trait Implementations§
§impl Clone for CaughtChange
impl Clone for CaughtChange
§fn clone(&self) -> CaughtChange
fn clone(&self) -> CaughtChange
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for CaughtChange
impl Debug for CaughtChange
§impl PartialEq for CaughtChange
impl PartialEq for CaughtChange
impl Eq for CaughtChange
Auto Trait Implementations§
impl Freeze for CaughtChange
impl RefUnwindSafe for CaughtChange
impl Send for CaughtChange
impl Sync for CaughtChange
impl Unpin for CaughtChange
impl UnsafeUnpin for CaughtChange
impl UnwindSafe for CaughtChange
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
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
§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
§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
key and return true if they are equal.