pub enum CommandOutcome {
Committed {
operation_id: OperationId,
entity_id: String,
revision: u64,
state: Value,
deduplicated: bool,
},
Pending {
operation_id: OperationId,
entity_id: String,
submitted_revision: u64,
},
RejectedRevisionConflict {
operation_id: OperationId,
expected: u64,
actual: u64,
},
RejectedError {
operation_id: OperationId,
reason: String,
},
}Expand description
Outcome returned by the host-owned BusinessStateStore when handling a typed command.
Variants§
Committed
Command committed atomically at revision (or replayed via idempotency key).
Fields
§
operation_id: OperationIdStable operation identifier assigned by the host.
Pending
Command accepted into host-owned in-flight execution and guaranteed to finish across hot-swaps.
Fields
§
operation_id: OperationIdStable operation identifier assigned by the host.
RejectedRevisionConflict
Command rejected because expected_revision did not match the live authoritative revision.
Fields
§
operation_id: OperationIdStable operation identifier assigned by the host.
RejectedError
Command rejected due to validation or host business rule failure.
Fields
§
operation_id: OperationIdStable operation identifier assigned by the host.
Trait Implementations§
Source§impl Clone for CommandOutcome
impl Clone for CommandOutcome
Source§impl Debug for CommandOutcome
impl Debug for CommandOutcome
Source§impl PartialEq for CommandOutcome
impl PartialEq for CommandOutcome
impl StructuralPartialEq for CommandOutcome
Auto Trait Implementations§
impl Forget for CommandOutcome
impl Freeze for CommandOutcomewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for CommandOutcome
impl RefUnwindSafe for CommandOutcome
impl Send for CommandOutcome
impl Sync for CommandOutcome
impl Unpin for CommandOutcome
impl UnsafeUnpin for CommandOutcomewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for CommandOutcome
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