pub enum RefineOutcome {
Applied,
Failed,
Cancelled,
}Expand description
How a refine round ended (DESIGN.md §6). It rides the refining → proposed
transition, is logged as the detail of a refine event, and picks the
outcome the round’s session closes with — so the markers on the returned
proposal are derived from the round that just concluded rather than from
the whole history of the task.
Variants§
Applied
The agent rewrote the body and applied it with set --body-file.
Failed
The agent died without applying anything (reconcile, DESIGN.md §8).
Cancelled
The operator quit the session or cancelled the round; nothing landed, which is a no-op rather than a failure.
Implementations§
Source§impl RefineOutcome
impl RefineOutcome
pub const ALL: [RefineOutcome; 3]
pub fn as_str(self) -> &'static str
pub fn parse(s: &str) -> Result<RefineOutcome>
Sourcepub fn session_outcome(self) -> SessionOutcome
pub fn session_outcome(self) -> SessionOutcome
The outcome the round’s session closes with, since a session’s life follows its task (DESIGN.md §8).
Trait Implementations§
Source§impl Clone for RefineOutcome
impl Clone for RefineOutcome
Source§fn clone(&self) -> RefineOutcome
fn clone(&self) -> RefineOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RefineOutcome
Source§impl Debug for RefineOutcome
impl Debug for RefineOutcome
Source§impl Display for RefineOutcome
impl Display for RefineOutcome
impl Eq for RefineOutcome
Source§impl Hash for RefineOutcome
impl Hash for RefineOutcome
Source§impl PartialEq for RefineOutcome
impl PartialEq for RefineOutcome
impl StructuralPartialEq for RefineOutcome
Auto Trait Implementations§
impl Freeze for RefineOutcome
impl RefUnwindSafe for RefineOutcome
impl Send for RefineOutcome
impl Sync for RefineOutcome
impl Unpin for RefineOutcome
impl UnsafeUnpin for RefineOutcome
impl UnwindSafe for RefineOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.