pub enum Light {
Red,
Error,
Active,
Blocked,
Waiting,
Green,
}Expand description
How a graph node or edge is lit. Declared in precedence order: an Artifact takes the first light any of its evals has (RED before ERROR before in progress before blocked before waiting before GREEN).
Variants§
Red
An eval’s verdict is RED.
Error
An eval failed operationally: ERROR, not a verdict.
Active
Running, or waiting for its Human.
Blocked
Cannot proceed: an upstream Artifact is RED, ERROR or itself blocked.
Waiting
Runnable but still waiting: queued, for upstream Artifacts that are not done yet, or not run in a finished Run.
Green
Every eval is GREEN (an Artifact without evals is complete too).
Trait Implementations§
impl Copy for Light
impl Eq for Light
Source§impl From<Completion> for Light
impl From<Completion> for Light
Source§fn from(completion: Completion) -> Self
fn from(completion: Completion) -> Self
An upstream Artifact’s light where the graph has not lit it (a cycle peer lit later).
Source§impl Ord for Light
impl Ord for Light
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Light
impl PartialOrd for Light
impl StructuralPartialEq for Light
Auto Trait Implementations§
impl Freeze for Light
impl RefUnwindSafe for Light
impl Send for Light
impl Sync for Light
impl Unpin for Light
impl UnsafeUnpin for Light
impl UnwindSafe for Light
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.