pub enum Delta {
Whole,
Change {
upsert: Vec<Value>,
remove: Vec<String>,
},
}Expand description
FRAME-20: what crosses to a module when its collection moves — the fold’s own result by key, not the collection.
Variants§
Whole
The whole collection: the first page, a resync’s snapshot, a switch to other params — or a subscriber that missed a move.
Change
The rows the fold inserted or replaced (each one whose value changed: an upsert equal to the row kept moves nothing), and the keys it removed (an upsert that stops matching the params is a remove). Both empty: only the status moved.
Trait Implementations§
impl StructuralPartialEq for Delta
Auto Trait Implementations§
impl Forget for Delta
impl Freeze for Delta
impl Move for Delta
impl RefUnwindSafe for Delta
impl Send for Delta
impl Sync for Delta
impl Unpin for Delta
impl UnsafeUnpin for Delta
impl UnwindSafe for Delta
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
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,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.