#[non_exhaustive]pub struct ClaimForWorkerArgs {
pub lane_id: LaneId,
pub worker_id: WorkerId,
pub worker_instance_id: WorkerInstanceId,
pub worker_capabilities: BTreeSet<String>,
pub grant_ttl_ms: u64,
}Expand description
Inputs to EngineBackend::claim_for_worker (RFC-017 §5, §7). The
Valkey impl forwards to ff_scheduler::Scheduler::claim_for_worker;
the Postgres impl forwards to its own scheduler module. The trait
method hides the backend-specific dispatch behind one shape.
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§worker_id: WorkerId§worker_instance_id: WorkerInstanceId§worker_capabilities: BTreeSet<String>§grant_ttl_ms: u64Implementations§
Source§impl ClaimForWorkerArgs
impl ClaimForWorkerArgs
Sourcepub fn new(
lane_id: LaneId,
worker_id: WorkerId,
worker_instance_id: WorkerInstanceId,
worker_capabilities: BTreeSet<String>,
grant_ttl_ms: u64,
) -> Self
pub fn new( lane_id: LaneId, worker_id: WorkerId, worker_instance_id: WorkerInstanceId, worker_capabilities: BTreeSet<String>, grant_ttl_ms: u64, ) -> Self
Required-field constructor. Optional fields today: none — kept
for forward-compat so a future optional (e.g. deadline_ms)
does not break callers using the builder pattern.
Trait Implementations§
Source§impl Clone for ClaimForWorkerArgs
impl Clone for ClaimForWorkerArgs
Source§fn clone(&self) -> ClaimForWorkerArgs
fn clone(&self) -> ClaimForWorkerArgs
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 ClaimForWorkerArgs
impl RefUnwindSafe for ClaimForWorkerArgs
impl Send for ClaimForWorkerArgs
impl Sync for ClaimForWorkerArgs
impl Unpin for ClaimForWorkerArgs
impl UnsafeUnpin for ClaimForWorkerArgs
impl UnwindSafe for ClaimForWorkerArgs
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