pub struct LeanWorkerStreamSummary {
pub total_rows: u64,
pub per_stream_counts: BTreeMap<String, u64>,
pub elapsed: Duration,
pub metadata: Option<Value>,
}Expand description
Summary returned after a worker data-stream export completes.
Rows delivered to LeanWorkerDataSink are tentative until this summary is
returned successfully. Downstream callers that need atomic commit should
buffer rows in their sink and commit only after terminal success.
Fields§
§total_rows: u64Total number of rows delivered to the parent before terminal success.
per_stream_counts: BTreeMap<String, u64>Per-stream row counts assigned by lean-rs-worker.
elapsed: DurationElapsed time measured in the child for the streaming export.
metadata: Option<Value>Optional downstream-defined terminal metadata.
Trait Implementations§
Source§impl Clone for LeanWorkerStreamSummary
impl Clone for LeanWorkerStreamSummary
Source§fn clone(&self) -> LeanWorkerStreamSummary
fn clone(&self) -> LeanWorkerStreamSummary
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 moreSource§impl Debug for LeanWorkerStreamSummary
impl Debug for LeanWorkerStreamSummary
Source§impl PartialEq for LeanWorkerStreamSummary
impl PartialEq for LeanWorkerStreamSummary
Source§fn eq(&self, other: &LeanWorkerStreamSummary) -> bool
fn eq(&self, other: &LeanWorkerStreamSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LeanWorkerStreamSummary
impl StructuralPartialEq for LeanWorkerStreamSummary
Auto Trait Implementations§
impl Freeze for LeanWorkerStreamSummary
impl RefUnwindSafe for LeanWorkerStreamSummary
impl Send for LeanWorkerStreamSummary
impl Sync for LeanWorkerStreamSummary
impl Unpin for LeanWorkerStreamSummary
impl UnsafeUnpin for LeanWorkerStreamSummary
impl UnwindSafe for LeanWorkerStreamSummary
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