#[non_exhaustive]pub struct DrainReport {
pub processed: u64,
pub released: u64,
pub stopped_by_budget: bool,
}Expand description
What one drain_within pass did.
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.processed: u64Records handled to an outcome (Done, RetryAt or NextAt).
released: u64Claimed records handed back unprocessed because the budget ran out.
stopped_by_budget: boolThe budget cut this tick short — at the start check, by the claim
cap, or mid-batch — and more rows may still be due. false means
every due row the budget allowed was handled and nothing waited
behind the budget. Run again next tick either way.
Trait Implementations§
Source§impl Clone for DrainReport
impl Clone for DrainReport
impl Copy for DrainReport
Source§impl Debug for DrainReport
impl Debug for DrainReport
Source§impl Default for DrainReport
impl Default for DrainReport
impl Eq for DrainReport
Source§impl PartialEq for DrainReport
impl PartialEq for DrainReport
impl StructuralPartialEq for DrainReport
Auto Trait Implementations§
impl Freeze for DrainReport
impl RefUnwindSafe for DrainReport
impl Send for DrainReport
impl Sync for DrainReport
impl Unpin for DrainReport
impl UnsafeUnpin for DrainReport
impl UnwindSafe for DrainReport
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.