pub struct WorkerSlot {
pub worker_index: i32,
pub worker_count: i32,
pub cancelled: Arc<AtomicBool>,
pub barrier: Option<Arc<Barrier>>,
pub shared_ptr: i32,
pub shared_len: i32,
pub scratch_ptr: i32,
pub scratch_len: i32,
pub shared_fuel_pool: Option<Arc<AtomicU64>>,
}Expand description
State visible to a single worker lane (or the coordinator) inside the mock runtime.
Fields§
§worker_index: i32§worker_count: i32§cancelled: Arc<AtomicBool>§barrier: Option<Arc<Barrier>>Optional cross-thread barrier. None for single-threaded mock
launches (where barrier() is a no-op).
Offsets into a notional linear memory. The mock is intentionally faithful to the wasm contract: shared region first, then scratch regions in worker-index order.
scratch_ptr: i32§scratch_len: i32Phase 48.13 W2b — lease-wide shared fuel pool for V2
shared-memory tasklets. None simulates a V1 worker (or any
caller that hasn’t installed a pool); the mock
fb_fuel_checkpoint returns -1 in that case so V1 source
observing the spec’d behavior fails closed.
Trait Implementations§
Source§impl Clone for WorkerSlot
impl Clone for WorkerSlot
Source§fn clone(&self) -> WorkerSlot
fn clone(&self) -> WorkerSlot
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 WorkerSlot
impl RefUnwindSafe for WorkerSlot
impl Send for WorkerSlot
impl Sync for WorkerSlot
impl Unpin for WorkerSlot
impl UnwindSafe for WorkerSlot
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