pub enum WorkerScope {
Stage,
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. A verdict it reports lands on whichever stage execution the driver has checkpointed a process for — there is exactly one, so the answer is unambiguous without the token saying it.
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkerScope
impl Debug for WorkerScope
Source§impl Default for WorkerScope
impl Default for WorkerScope
Source§fn default() -> WorkerScope
fn default() -> WorkerScope
Returns the “default value” for a type. Read more
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.