pub enum CommitOutcome<Payload> {
Committed {
commit_index: u64,
payload: Payload,
},
Conflicted(String),
}Expand description
Result of a commit attempt: either the durable commit index plus the caller payload, or a conflict reason.
Variants§
Committed
The commit was published at commit_index with the caller’s payload.
Fields
§
payload: PayloadCaller-supplied response payload persisted with the outcome.
Conflicted(String)
The commit was rejected; the string explains the conflict.
Trait Implementations§
Auto Trait Implementations§
impl<Payload> Freeze for CommitOutcome<Payload>where
Payload: Freeze,
impl<Payload> RefUnwindSafe for CommitOutcome<Payload>where
Payload: RefUnwindSafe,
impl<Payload> Send for CommitOutcome<Payload>where
Payload: Send,
impl<Payload> Sync for CommitOutcome<Payload>where
Payload: Sync,
impl<Payload> Unpin for CommitOutcome<Payload>where
Payload: Unpin,
impl<Payload> UnsafeUnpin for CommitOutcome<Payload>where
Payload: UnsafeUnpin,
impl<Payload> UnwindSafe for CommitOutcome<Payload>where
Payload: UnwindSafe,
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