pub enum ApplyEvent {
Change(Change),
RelationChange(Box<RelationChange>),
}Expand description
One item in the apply buffer / transform window / ordered sink queue.
Sources may interleave row CDC and relation CDC; the apply engine preserves source order across both kinds through the same max_in_flight window.
RelationChange is boxed to keep the enum compact
(RelationChange is substantially larger than Change).
Variants§
Change(Change)
Row create / update / delete.
RelationChange(Box<RelationChange>)
Graph-edge create / update / delete (RelationChange).
Implementations§
Source§impl ApplyEvent
impl ApplyEvent
Sourcepub fn relation_change(change: RelationChange) -> Self
pub fn relation_change(change: RelationChange) -> Self
Wrap a relation change.
Sourcepub fn is_relation_change(&self) -> bool
pub fn is_relation_change(&self) -> bool
Whether this is a relation change.
Trait Implementations§
Source§impl Clone for ApplyEvent
impl Clone for ApplyEvent
Source§fn clone(&self) -> ApplyEvent
fn clone(&self) -> ApplyEvent
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 moreAuto Trait Implementations§
impl Freeze for ApplyEvent
impl RefUnwindSafe for ApplyEvent
impl Send for ApplyEvent
impl Sync for ApplyEvent
impl Unpin for ApplyEvent
impl UnsafeUnpin for ApplyEvent
impl UnwindSafe for ApplyEvent
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