pub struct TerminalOutputRecord {
pub terminal_id: String,
pub output: PackedText,
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: PackedText§truncated: bool§exit_code: Option<u32>§signal: Option<String>Implementations§
Source§impl TerminalOutputRecord
impl TerminalOutputRecord
Sourcepub fn raw_result_digest(&self) -> [u8; 32]
pub fn raw_result_digest(&self) -> [u8; 32]
Compute once before comparing one terminal event with the tool window.
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
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 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>,
impl Eq for TerminalOutputRecord
Source§impl From<&CanonicalTerminalOutput> for TerminalOutputRecord
impl From<&CanonicalTerminalOutput> for TerminalOutputRecord
Source§fn from(record: &CanonicalTerminalOutput) -> TerminalOutputRecord
fn from(record: &CanonicalTerminalOutput) -> 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,
impl StructuralPartialEq for TerminalOutputRecord
Source§impl TerminalRecord for TerminalOutputRecord
impl TerminalRecord for TerminalOutputRecord
fn terminal_id(&self) -> &str
Auto Trait Implementations§
impl Forget for TerminalOutputRecord
impl Freeze for TerminalOutputRecord
impl Move 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
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
key and return true if they are equal.