pub struct TerminalExitStatus {
pub exit_code: Option<i32>,
pub signal: Option<String>,
}Expand description
Exit status of a terminal process.
Fields§
§exit_code: Option<i32>Exit code of the process. None if killed by a signal; see signal.
Internally uses i32 to match BashOutput.exit_code. When AcpShellBackend
receives
Option<u32> from the schema, it uses i32::try_from; values exceeding
i32::MAX degrade to
-1 (the actual exit code range is 0..=255, so this never overflows).
signal: Option<String>Signal name (e.g. SIGKILL). The local backend obtains it from
signal_name(sig); the ACP backend passes through the schema’s signal: Option<String>.
Trait Implementations§
Source§impl Clone for TerminalExitStatus
impl Clone for TerminalExitStatus
Source§fn clone(&self) -> TerminalExitStatus
fn clone(&self) -> TerminalExitStatus
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 moreAuto 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
Mutably borrows from an owned value. Read more