pub struct RowStreamOutcome {
pub rows: Vec<StoreRow>,
pub total_seen: usize,
pub dropped: usize,
pub truncated: bool,
pub cancelled: bool,
}Expand description
The result of draining a retrieve row stream under a policy.
Fields§
§rows: Vec<StoreRow>The rows that survived the policy, in cursor order.
total_seen: usizeTotal rows the cursor yielded before the drain stopped.
dropped: usizeRows discarded by a DropOldest policy.
truncated: booltrue iff a PauseUpstream policy stopped the drain at the
bound while the cursor still had rows.
cancelled: booltrue iff the cancellation flag fired mid-drain.
Trait Implementations§
Source§impl Clone for RowStreamOutcome
impl Clone for RowStreamOutcome
Source§fn clone(&self) -> RowStreamOutcome
fn clone(&self) -> RowStreamOutcome
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 RowStreamOutcome
impl Debug for RowStreamOutcome
Source§impl Default for RowStreamOutcome
impl Default for RowStreamOutcome
Source§fn default() -> RowStreamOutcome
fn default() -> RowStreamOutcome
Returns the “default value” for a type. Read more
Source§impl PartialEq for RowStreamOutcome
impl PartialEq for RowStreamOutcome
Source§fn eq(&self, other: &RowStreamOutcome) -> bool
fn eq(&self, other: &RowStreamOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RowStreamOutcome
Auto Trait Implementations§
impl Freeze for RowStreamOutcome
impl RefUnwindSafe for RowStreamOutcome
impl Send for RowStreamOutcome
impl Sync for RowStreamOutcome
impl Unpin for RowStreamOutcome
impl UnsafeUnpin for RowStreamOutcome
impl UnwindSafe for RowStreamOutcome
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<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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.