#[non_exhaustive]pub struct TerminalExitStatus {
pub exit_code: Option<u32>,
pub signal: Option<String>,
pub meta: Option<Meta>,
}unstable_protocol_v2 only.Expand description
Exit information for an agent-owned terminal.
The presence of this object marks the terminal as exited, even when neither an exit code nor a signal is known.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.exit_code: Option<u32>Process exit code, when known. Omitted and null are equivalent.
signal: Option<String>Signal that terminated the process, when known.
Agents should use the conventional platform signal name. POSIX examples
include SIGTERM, SIGKILL, and SIGINT. Other platforms may use a
platform-specific name. Omitted and null are equivalent.
meta: Option<Meta>The _meta property is reserved by ACP to allow clients and agents to attach additional
metadata to their interactions. Implementations MUST NOT make assumptions about values at
these keys. This metadata is scoped to the exit information. Omitted
and null are equivalent and mean no exit metadata was provided.
See protocol docs: Extensibility
Implementations§
Source§impl TerminalExitStatus
impl TerminalExitStatus
Sourcepub fn exit_code(self, exit_code: impl IntoOption<u32>) -> Self
pub fn exit_code(self, exit_code: impl IntoOption<u32>) -> Self
Sets or clears the optional exit code.
Sourcepub fn signal(self, signal: impl IntoOption<String>) -> Self
pub fn signal(self, signal: impl IntoOption<String>) -> Self
Sets or clears the optional terminating signal.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
Sets or clears metadata scoped to this exit information.
Trait Implementations§
Source§impl Clone for TerminalExitStatus
impl Clone for TerminalExitStatus
Source§fn clone(&self) -> TerminalExitStatus
fn clone(&self) -> TerminalExitStatus
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 TerminalExitStatus
impl Debug for TerminalExitStatus
Source§impl Default for TerminalExitStatus
impl Default for TerminalExitStatus
Source§fn default() -> TerminalExitStatus
fn default() -> TerminalExitStatus
Source§impl<'de> Deserialize<'de> for TerminalExitStatus
impl<'de> Deserialize<'de> for TerminalExitStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for TerminalExitStatus
Source§impl JsonSchema for TerminalExitStatus
impl JsonSchema for TerminalExitStatus
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for TerminalExitStatus
impl PartialEq for TerminalExitStatus
Source§impl Serialize for TerminalExitStatus
impl Serialize for TerminalExitStatus
impl StructuralPartialEq for TerminalExitStatus
Auto Trait Implementations§
impl Freeze for TerminalExitStatus
impl RefUnwindSafe for TerminalExitStatus
impl Send for TerminalExitStatus
impl Sync for TerminalExitStatus
impl Unpin for TerminalExitStatus
impl UnsafeUnpin for TerminalExitStatus
impl UnwindSafe for TerminalExitStatus
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.