pub enum TimerOutcome {
Applied {
status: SagaStatus,
},
SkippedPaused,
SkippedFencingLost,
SkippedStale,
}Expand description
业务作用:区分单个 timer 的处理结论,驱动领取循环决定交还还是继续。
Variants§
Applied
timer 已消费并完成对应裁决。
Fields
§
status: SagaStatus事务提交后的实例业务状态。
SkippedPaused
实例处于 PAUSED:不消费,由调用方按轮询退避交还。
SkippedFencingLost
fencing 失败:租约已被其它副本接管,旧 owner 立即停止。
SkippedStale
timer 语义已过时(状态/步骤已迁移),已按已消费吸收,无业务动作。
Trait Implementations§
Source§impl Clone for TimerOutcome
impl Clone for TimerOutcome
Source§impl Debug for TimerOutcome
impl Debug for TimerOutcome
impl Eq for TimerOutcome
Source§impl PartialEq for TimerOutcome
impl PartialEq for TimerOutcome
impl StructuralPartialEq for TimerOutcome
Auto Trait Implementations§
impl Forget for TimerOutcome
impl Freeze for TimerOutcome
impl Move for TimerOutcome
impl RefUnwindSafe for TimerOutcome
impl Send for TimerOutcome
impl Sync for TimerOutcome
impl Unpin for TimerOutcome
impl UnsafeUnpin for TimerOutcome
impl UnwindSafe for TimerOutcome
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