pub enum DeliberationOutcome {
Success,
NoValidProposal,
}Expand description
The terminal result of a deliberation that ran to completion.
A deliberation that reaches its end lands in exactly one of these: either a winning proposal was selected, or — under an output contract — every proposal was generated but none satisfied it.
Adapter-shaped aborts (an agent or validator returning Err) are
deliberately not outcomes: they surface as DomainErrors and as
dedicated error counters (the judge/provider *_errors_total families).
Keeping this enum to the two genuine end-states keeps the outcome
metric label low-cardinality and meaningful.
Variants§
Success
A winning proposal was selected and returned to the caller.
NoValidProposal
An output contract was in force but no proposal satisfied it.
Implementations§
Trait Implementations§
Source§impl Clone for DeliberationOutcome
impl Clone for DeliberationOutcome
impl Copy for DeliberationOutcome
Source§impl Debug for DeliberationOutcome
impl Debug for DeliberationOutcome
impl Eq for DeliberationOutcome
Source§impl Hash for DeliberationOutcome
impl Hash for DeliberationOutcome
Source§impl PartialEq for DeliberationOutcome
impl PartialEq for DeliberationOutcome
impl StructuralPartialEq for DeliberationOutcome
Auto Trait Implementations§
impl Freeze for DeliberationOutcome
impl RefUnwindSafe for DeliberationOutcome
impl Send for DeliberationOutcome
impl Sync for DeliberationOutcome
impl Unpin for DeliberationOutcome
impl UnsafeUnpin for DeliberationOutcome
impl UnwindSafe for DeliberationOutcome
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