pub enum StartOutcome {
Started(SagaInstanceRow),
AlreadyExists(SagaInstanceRow),
}Expand description
业务作用:区分创建入口的两种结果;AlreadyExists 表示业务幂等键命中,无新副作用。
Variants§
Started(SagaInstanceRow)
实例已创建,首步命令、timer 与初始 transition 已同事务提交。
AlreadyExists(SagaInstanceRow)
同一业务意图已有实例;返回其当前快照。
Trait Implementations§
Source§impl Clone for StartOutcome
impl Clone for StartOutcome
Source§impl Debug for StartOutcome
impl Debug for StartOutcome
impl Eq for StartOutcome
Source§impl PartialEq for StartOutcome
impl PartialEq for StartOutcome
impl StructuralPartialEq for StartOutcome
Auto Trait Implementations§
impl Freeze for StartOutcome
impl RefUnwindSafe for StartOutcome
impl Send for StartOutcome
impl Sync for StartOutcome
impl Unpin for StartOutcome
impl UnsafeUnpin for StartOutcome
impl UnwindSafe for StartOutcome
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