pub enum WorkerScope {
Stage {
stage: String,
attempt: u32,
},
PanelReviewer {
stage: String,
stage_index: usize,
attempt: u32,
reviewer_index: usize,
},
}Expand description
The authority a worker token carries.
Variants§
Stage
The stage’s own worker, named by the credential the same way a panel
seat is. The stage cannot be read back off the checkpointed process
instead: the driver clears the stage_process row when a stage ends and
writes the next one only after that stage’s child is already spawned, so
between those two points there is no row to read. A worker that reported
inside the window was refused outright, and the check it was answering
never saw the report it was waiting for.
PanelReviewer
One seat on a panel. A panel runs several workers against one stage execution, so “the executing stage” no longer picks out a report row: the seat is named by the credential instead, and a reviewer holding it can report for nothing else — not another seat, not another attempt, not another run.
Trait Implementations§
Source§impl Clone for WorkerScope
impl Clone for WorkerScope
Source§fn clone(&self) -> WorkerScope
fn clone(&self) -> WorkerScope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WorkerScope
impl Debug for WorkerScope
impl Eq for WorkerScope
Source§impl PartialEq for WorkerScope
impl PartialEq for WorkerScope
impl StructuralPartialEq for WorkerScope
Auto Trait Implementations§
impl Freeze for WorkerScope
impl RefUnwindSafe for WorkerScope
impl Send for WorkerScope
impl Sync for WorkerScope
impl Unpin for WorkerScope
impl UnsafeUnpin for WorkerScope
impl UnwindSafe for WorkerScope
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
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
key and return true if they are equal.