pub enum Dispatched {
Ran {
outcome: Outcome,
usd: f64,
source: CostSource,
},
Refused(Refusal),
Parked {
waiting_for: Vec<AgentName>,
},
Superseded,
Failed(String),
}Expand description
What happened to one piece of work the factory picked up.
Variants§
Ran
A run started, finished, and was recorded.
Fields
§
source: CostSourceWhere the figure came from.
Refused(Refusal)
The flight was refused before anything started.
Parked
The flight is waiting at a rendezvous for its siblings.
Not a failure and not a run: the work is held, and the agent it was for stays asleep until the rest of what it needs arrives.
Superseded
The flight arrived after an any join had already woken its agent.
Recorded rather than dropped. Releasing on the first arrival is the point of any — waking
a publisher once per straggler means one pull request per straggler — but work that
disappears without a record is indistinguishable from work nobody asked for.
Failed(String)
Something went wrong that is the factory’s fault rather than the flight’s.
Trait Implementations§
Source§impl Debug for Dispatched
impl Debug for Dispatched
Auto Trait Implementations§
impl Freeze for Dispatched
impl RefUnwindSafe for Dispatched
impl Send for Dispatched
impl Sync for Dispatched
impl Unpin for Dispatched
impl UnsafeUnpin for Dispatched
impl UnwindSafe for Dispatched
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