#[non_exhaustive]pub enum CommitmentMode<'a> {
Decision {
state: &'a DecisionState,
},
Proposal {
counter_proposal_count: usize,
},
Task {
has_output: bool,
},
Handoff,
Quorum {
approve_count: usize,
reject_count: usize,
abstain_count: usize,
},
}Expand description
Per-mode accumulated state relevant to commitment evaluation.
Carries exactly the data each mode already computes: DecisionState is a
core domain type (passed whole); the other modes summarize their internal
state into scalars. #[non_exhaustive]: evaluators must carry a wildcard
arm and treat unknown modes as a denial (fail closed).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto Trait Implementations§
impl<'a> Freeze for CommitmentMode<'a>
impl<'a> RefUnwindSafe for CommitmentMode<'a>
impl<'a> Send for CommitmentMode<'a>
impl<'a> Sync for CommitmentMode<'a>
impl<'a> Unpin for CommitmentMode<'a>
impl<'a> UnsafeUnpin for CommitmentMode<'a>
impl<'a> UnwindSafe for CommitmentMode<'a>
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