#[non_exhaustive]pub struct ScanEligibleArgs {
pub lane_id: LaneId,
pub partition: Partition,
pub limit: u32,
}Expand description
Inputs to crate::engine_backend::EngineBackend::scan_eligible_executions.
Lifted from the SDK-side ZRANGEBYSCORE inline on the
claim_next scanner (v0.12 PR-5). The backend reads the lane’s
eligible ZSET on the given partition and returns up to limit
execution ids in priority order (Valkey: score = -(priority * 1e12) + created_at_ms, so +inf-bounded ZRANGEBYSCORE with
LIMIT 0 <limit> yields highest-priority-first).
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.lane_id: LaneId§partition: Partition§limit: u32Maximum number of execution ids to return. Backends MAY return fewer when the partition has less work.
Implementations§
Trait Implementations§
Source§impl Clone for ScanEligibleArgs
impl Clone for ScanEligibleArgs
Source§fn clone(&self) -> ScanEligibleArgs
fn clone(&self) -> ScanEligibleArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScanEligibleArgs
impl RefUnwindSafe for ScanEligibleArgs
impl Send for ScanEligibleArgs
impl Sync for ScanEligibleArgs
impl Unpin for ScanEligibleArgs
impl UnsafeUnpin for ScanEligibleArgs
impl UnwindSafe for ScanEligibleArgs
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