pub enum ParticipantHandled {
Executed(StepAttemptStatus),
Duplicate,
Suppressed,
Replayed(StepAttemptStatus),
ContractViolation,
}Expand description
业务作用:参与方命令处理的可 ACK 结论。
全部分支都表示“事务已 COMMIT,可以 ACK“;Retryable 与基础设施失败不会出现在
这里——它们以 Err 返回并回滚。
Variants§
Executed(StepAttemptStatus)
业务 handler 真实执行并提交了结论。
Duplicate
Inbox 命中重复命令;零副作用。
Suppressed
取消屏障已建立,execute 被本地状态拒绝;零正向效果,无结果事件。
Replayed(StepAttemptStatus)
该效果已有终态(新 attempt 重投);已按既有终态重发结果事件,零业务效果。
ContractViolation
补偿合同违规(本地无正向成功效果);已提交 Halted 违规事实并需告警。
Trait Implementations§
Source§impl Clone for ParticipantHandled
impl Clone for ParticipantHandled
impl Copy for ParticipantHandled
Source§impl Debug for ParticipantHandled
impl Debug for ParticipantHandled
impl Eq for ParticipantHandled
Source§impl PartialEq for ParticipantHandled
impl PartialEq for ParticipantHandled
impl StructuralPartialEq for ParticipantHandled
Auto Trait Implementations§
impl Freeze for ParticipantHandled
impl RefUnwindSafe for ParticipantHandled
impl Send for ParticipantHandled
impl Sync for ParticipantHandled
impl Unpin for ParticipantHandled
impl UnsafeUnpin for ParticipantHandled
impl UnwindSafe for ParticipantHandled
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