pub struct TerminalOutputRecord {
pub terminal_id: String,
pub output: String,
pub truncated: bool,
pub exit_code: Option<u32>,
pub signal: Option<String>,
}Expand description
What one client-run terminal produced, as hel recorded it when the child
was reaped. exit_code and signal mirror ACP TerminalExitStatus; both
are None when the terminal was released before a status was observed.
Fields§
§terminal_id: String§output: String§truncated: bool§exit_code: Option<u32>§signal: Option<String>Implementations§
Source§impl TerminalOutputRecord
impl TerminalOutputRecord
Sourcepub fn exited_cleanly(&self) -> bool
pub fn exited_cleanly(&self) -> bool
Whether the command ended the way a caller asked for: exit status zero and no signal. Anything else — a nonzero exit, a signal, or no status at all because the terminal was released before one was observed — is abnormal, and stays visible in every render mode.
Sourcepub fn matches_tool_raw_result(&self, call: &Value) -> bool
pub fn matches_tool_raw_result(&self, call: &Value) -> bool
Whether a completed ACP tool’s provider-specific raw result is this child result. Kimi reports shell output as a byte array beside its exit status but omits the ACP terminal reference, so the exact result is the only ownership information it publishes.
Trait Implementations§
Source§impl Clone for TerminalOutputRecord
impl Clone for TerminalOutputRecord
Source§fn clone(&self) -> TerminalOutputRecord
fn clone(&self) -> TerminalOutputRecord
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 moreSource§impl Debug for TerminalOutputRecord
impl Debug for TerminalOutputRecord
Source§impl<'de> Deserialize<'de> for TerminalOutputRecord
impl<'de> Deserialize<'de> for TerminalOutputRecord
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TerminalOutputRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TerminalOutputRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TerminalOutputRecord
Source§impl PartialEq for TerminalOutputRecord
impl PartialEq for TerminalOutputRecord
Source§impl Serialize for TerminalOutputRecord
impl Serialize for TerminalOutputRecord
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TerminalOutputRecord
Auto Trait Implementations§
impl Freeze for TerminalOutputRecord
impl RefUnwindSafe for TerminalOutputRecord
impl Send for TerminalOutputRecord
impl Sync for TerminalOutputRecord
impl Unpin for TerminalOutputRecord
impl UnsafeUnpin for TerminalOutputRecord
impl UnwindSafe for TerminalOutputRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.