pub enum Activity {
Running,
Waiting,
Failed,
}Expand description
What an agent is doing right now, for colouring a diagram.
Absent from the map means idle. Idle is the overwhelmingly common state, so storing it would be storing mostly nothing.
Variants§
Running
At least one run of this agent is in flight.
Waiting
Flights are parked at this agent’s barrier, waiting for the rest.
Failed
This agent’s last run ended badly.
Implementations§
Trait Implementations§
impl Copy for Activity
impl Eq for Activity
impl StructuralPartialEq for Activity
Auto Trait Implementations§
impl Freeze for Activity
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnsafeUnpin for Activity
impl UnwindSafe for Activity
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