pub enum ShellOutcome {
Exited {
code: i32,
},
Signaled {
signal: i32,
},
Cancelled,
TimedOut {
after_secs: u64,
},
}Expand description
How a shell command ended.
Variants§
Exited
Signaled
Cancelled
The command ran out of time and its whole process group was killed. The session ended or the computer shut down while the command ran, and its whole process group was killed.
TimedOut
Trait Implementations§
Source§impl Clone for ShellOutcome
impl Clone for ShellOutcome
impl Copy for ShellOutcome
Source§impl Debug for ShellOutcome
impl Debug for ShellOutcome
Source§impl<'de> Deserialize<'de> for ShellOutcome
impl<'de> Deserialize<'de> for ShellOutcome
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 ShellOutcome
Source§impl PartialEq for ShellOutcome
impl PartialEq for ShellOutcome
Source§impl Serialize for ShellOutcome
impl Serialize for ShellOutcome
impl StructuralPartialEq for ShellOutcome
Auto Trait Implementations§
impl Freeze for ShellOutcome
impl RefUnwindSafe for ShellOutcome
impl Send for ShellOutcome
impl Sync for ShellOutcome
impl Unpin for ShellOutcome
impl UnsafeUnpin for ShellOutcome
impl UnwindSafe for ShellOutcome
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