pub struct DrainOptions {
pub limit: u64,
pub lease: Duration,
pub subrequests_per_item: u32,
}Expand description
How many items a drain_within may process in
one tick, under what lease, and what one item costs the budget.
Fields§
§limit: u64At most this many records are claimed and handled per tick.
lease: DurationHow long a claimed record stays leased while its handler runs. A
handler that overruns it hands the record to a concurrent drainer —
at-least-once, so pair the topic with an Inbox key.
subrequests_per_item: u32Subrequest-shaped steps one handled record costs the
ScheduledBudget. 0 makes the budget time-only.
Trait Implementations§
Source§impl Clone for DrainOptions
impl Clone for DrainOptions
impl Copy for DrainOptions
Source§impl Debug for DrainOptions
impl Debug for DrainOptions
impl Eq for DrainOptions
Source§impl PartialEq for DrainOptions
impl PartialEq for DrainOptions
impl StructuralPartialEq for DrainOptions
Auto Trait Implementations§
impl Freeze for DrainOptions
impl RefUnwindSafe for DrainOptions
impl Send for DrainOptions
impl Sync for DrainOptions
impl Unpin for DrainOptions
impl UnsafeUnpin for DrainOptions
impl UnwindSafe for DrainOptions
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.