pub enum PursuitVerdict {
Work {
next: NodeId,
},
Waiting {
in_flight: u32,
},
Paused,
Finished,
}Expand description
What a city holding a pursuit does next. Exhaustive: every arm is something the caller has to do, and a fifth would be a state nobody wrote an action for.
Carries serde because the page says it: the wire holds the kind, and
the client takes the words for each kind from its own lang.json.
Variants§
Work
Start this node. The first of the ready set, so the order is the plan’s own and two cities with the same plan pick the same node.
Waiting
Nothing is ready and somebody is still working: the ready set will change when they are done.
Paused
The pursuit is held but not taking work.
Finished
Nothing ready, nobody working. The city has finished, and nobody had to say so.
Trait Implementations§
Source§impl Clone for PursuitVerdict
impl Clone for PursuitVerdict
Source§impl Debug for PursuitVerdict
impl Debug for PursuitVerdict
Source§impl<'de> Deserialize<'de> for PursuitVerdict
impl<'de> Deserialize<'de> for PursuitVerdict
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PursuitVerdict
Source§impl PartialEq for PursuitVerdict
impl PartialEq for PursuitVerdict
Source§impl Serialize for PursuitVerdict
impl Serialize for PursuitVerdict
impl StructuralPartialEq for PursuitVerdict
Auto Trait Implementations§
impl Freeze for PursuitVerdict
impl RefUnwindSafe for PursuitVerdict
impl Send for PursuitVerdict
impl Sync for PursuitVerdict
impl Unpin for PursuitVerdict
impl UnsafeUnpin for PursuitVerdict
impl UnwindSafe for PursuitVerdict
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