pub struct RunOutcome {
pub session_id: String,
pub short_id: String,
pub exit_code: Option<i32>,
pub duration_ms: i64,
pub event_count: i64,
pub steps: i64,
pub files_changed: i64,
pub status: &'static str,
pub agent_kind: AgentKind,
pub adapter_status: AdapterStatus,
pub degrade_reason: Option<String>,
}Expand description
The outcome of a finished recording (FR-1.6).
Fields§
§session_id: StringFull session UUID string.
short_id: String6-hex-char short id.
exit_code: Option<i32>Child exit code, if it could be determined.
duration_ms: i64Wall-clock duration in ms.
event_count: i64Number of events written (including raw terminal chunks).
steps: i64Number of step-eligible events (FR-3.4; everything except
terminal_output). The “N steps” in the epilogue (FR-1.6).
files_changed: i64Number of distinct files changed.
status: &'static strFinal session status (ok | error | interrupted).
agent_kind: AgentKindAgent kind detected for the session (FR-1.5); the binary uses this to decide whether a 0-step session warrants an “adapter may be broken” epilogue warning (only meaningful for adapter-active kinds).
adapter_status: AdapterStatusFinal adapter status. None for PTY-only sessions that never ran an
adapter; Active if the adapter tailed a transcript; Degraded if it
could not (the binary surfaces Self::degrade_reason when so).
degrade_reason: Option<String>When Self::adapter_status is AdapterStatus::Degraded, a single
actionable line the binary prints to stderr after the child exits and
the terminal is restored (FR-1.5), instead of from the tailer thread
mid-session where the agent’s TUI would bury it.
Trait Implementations§
Source§impl Clone for RunOutcome
impl Clone for RunOutcome
Source§fn clone(&self) -> RunOutcome
fn clone(&self) -> RunOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RunOutcome
impl Debug for RunOutcome
impl Eq for RunOutcome
Source§impl PartialEq for RunOutcome
impl PartialEq for RunOutcome
impl StructuralPartialEq for RunOutcome
Auto Trait Implementations§
impl Freeze for RunOutcome
impl RefUnwindSafe for RunOutcome
impl Send for RunOutcome
impl Sync for RunOutcome
impl Unpin for RunOutcome
impl UnsafeUnpin for RunOutcome
impl UnwindSafe for RunOutcome
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
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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§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
key and return true if they are equal.