pub enum ShellExitStatus {
Exited {
code: i32,
},
Signaled {
signal: Option<i32>,
},
KilledByTimeout {
timeout_ms: u64,
},
KilledByCancel,
SpawnFailed {
reason: String,
},
}Expand description
Typed, reaped terminal status of a shell child (foreground or background). Reported only after the child has been waited on, so a consumer never sees an exit status for a process that may still be running.
signaled.signal is None when the platform reported death without an
exit code but the adapter did not surface the signal number.
Variants§
Exited
Signaled
KilledByTimeout
KilledByCancel
SpawnFailed
The child never ran to a reaped state because launch failed.
Implementations§
Trait Implementations§
Source§impl Clone for ShellExitStatus
impl Clone for ShellExitStatus
Source§impl Debug for ShellExitStatus
impl Debug for ShellExitStatus
Source§impl<'de> Deserialize<'de> for ShellExitStatus
impl<'de> Deserialize<'de> for ShellExitStatus
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ShellExitStatus
Source§impl PartialEq for ShellExitStatus
impl PartialEq for ShellExitStatus
Source§impl Serialize for ShellExitStatus
impl Serialize for ShellExitStatus
impl StructuralPartialEq for ShellExitStatus
Auto Trait Implementations§
impl Freeze for ShellExitStatus
impl RefUnwindSafe for ShellExitStatus
impl Send for ShellExitStatus
impl Sync for ShellExitStatus
impl Unpin for ShellExitStatus
impl UnsafeUnpin for ShellExitStatus
impl UnwindSafe for ShellExitStatus
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