#[non_exhaustive]pub struct CompletionEvent {
pub cursor: StreamCursor,
pub execution_id: ExecutionId,
pub outcome: CompletionOutcome,
pub at: TimestampMs,
}Expand description
Per-event payload of subscribe_completion.
Completion events are terminal state transitions surfaced to
downstream DAG consumers. Postgres carries a durable event-id
cursor; Valkey Stage B rides pubsub + always yields
StreamCursor::empty (no durable replay).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cursor: StreamCursor§execution_id: ExecutionId§outcome: CompletionOutcome§at: TimestampMsImplementations§
Source§impl CompletionEvent
impl CompletionEvent
Sourcepub fn new(
cursor: StreamCursor,
execution_id: ExecutionId,
outcome: CompletionOutcome,
at: TimestampMs,
) -> Self
pub fn new( cursor: StreamCursor, execution_id: ExecutionId, outcome: CompletionOutcome, at: TimestampMs, ) -> Self
Construct a CompletionEvent. Backend adapters go through
this constructor instead of struct-literal syntax so future
additive fields land as builder methods without breaking
call sites.
Trait Implementations§
Source§impl Clone for CompletionEvent
impl Clone for CompletionEvent
Source§fn clone(&self) -> CompletionEvent
fn clone(&self) -> CompletionEvent
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 moreAuto Trait Implementations§
impl !Freeze for CompletionEvent
impl RefUnwindSafe for CompletionEvent
impl Send for CompletionEvent
impl Sync for CompletionEvent
impl Unpin for CompletionEvent
impl UnsafeUnpin for CompletionEvent
impl UnwindSafe for CompletionEvent
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