pub struct StreamSummary {
pub batches: u32,
pub rows: usize,
pub running_total_emitted: i64,
pub is_last_batch: bool,
pub truncated: bool,
}Expand description
Accounting for a consumed StreamQuery stream.
Fields§
§batches: u32Batches consumed before completion or early exit.
rows: usizeTotal records across the consumed batches.
running_total_emitted: i64Server-side running total from the last consumed batch.
is_last_batch: boolWhether the last consumed batch was flagged final by the server.
truncated: boolWhether consumption stopped early via ControlFlow::Break — the
stream was dropped, cancelling the RPC (h2 cancel), and the server
may have more batches it never sent.
Trait Implementations§
Source§impl Clone for StreamSummary
impl Clone for StreamSummary
impl Copy for StreamSummary
Source§impl Debug for StreamSummary
impl Debug for StreamSummary
Source§impl Default for StreamSummary
impl Default for StreamSummary
impl Eq for StreamSummary
Source§impl PartialEq for StreamSummary
impl PartialEq for StreamSummary
impl StructuralPartialEq for StreamSummary
Auto Trait Implementations§
impl Freeze for StreamSummary
impl RefUnwindSafe for StreamSummary
impl Send for StreamSummary
impl Sync for StreamSummary
impl Unpin for StreamSummary
impl UnsafeUnpin for StreamSummary
impl UnwindSafe for StreamSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request