pub enum Advance {
Call {
index: usize,
op: BranchOp,
},
Finish(GlobalStatus),
Wait,
RunWorkflow,
}Expand description
推进全局事务后,状态机给出的下一步指令
Variants§
Call
调这个分支
Finish(GlobalStatus)
全部完成,落终态
Wait
有分支 Ongoing/Unknown,本轮到此为止,等下次 cron
RunWorkflow
跑一遍用户的 workflow 函数(只有 TransType::Workflow 会出现)。
单独一个变体而不是复用 Call:workflow 的正向走向是用户函数决定的,
不是状态机决定的。混进 Call 会让人以为这里也能算出「下一个分支是谁」。
Trait Implementations§
impl Eq for Advance
impl StructuralPartialEq for Advance
Auto Trait Implementations§
impl Freeze for Advance
impl RefUnwindSafe for Advance
impl Send for Advance
impl Sync for Advance
impl Unpin for Advance
impl UnsafeUnpin for Advance
impl UnwindSafe for Advance
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