Struct NewestFirst
pub struct NewestFirst { /* private fields */ }Expand description
A shard’s runs from the highest run number down: the newest start first, since a shard numbers its runs in the order they start. (After a reshard, runs that had to be renumbered count as newer than they are.)
Batches let the caller release the shard between them. The cursor
probes each number below the last one issued, so the newest k runs
cost about k lookups; once probing has cost two passes over the table
(old numbers mostly expired), it sorts the runs left instead. Runs
started after the cursor was made are not visited; a run removed
meanwhile may still be returned once.
Implementations§
§impl NewestFirst
impl NewestFirst
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewestFirst
impl RefUnwindSafe for NewestFirst
impl Send for NewestFirst
impl Sync for NewestFirst
impl Unpin for NewestFirst
impl UnsafeUnpin for NewestFirst
impl UnwindSafe for NewestFirst
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