pub enum CommandState {
Starting,
Running,
Exited {
code: i32,
signal: Option<i32>,
},
Refused {
reason: String,
},
Unfinished,
}Expand description
Where a command is:
Starting → Running → Exited
Starting → Refused
Starting | Running → Unfinished, as its sandbox endsVariants§
Starting
Sent to its sandbox, and not started yet.
Running
Exited
It exited with its code; or a signal killed it: its code is 128 and the signal, as a shell says, and the signal is given.
Refused
Its sandbox didn’t take it, and why: a script in an image with no shell, a command too long.
Unfinished
Its sandbox ended before it did.
Implementations§
Trait Implementations§
Source§impl Clone for CommandState
impl Clone for CommandState
Source§impl Debug for CommandState
impl Debug for CommandState
Source§impl<'de> Deserialize<'de> for CommandState
impl<'de> Deserialize<'de> for CommandState
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 CommandState
Source§impl PartialEq for CommandState
impl PartialEq for CommandState
Source§impl Serialize for CommandState
impl Serialize for CommandState
impl StructuralPartialEq for CommandState
Auto Trait Implementations§
impl Forget for CommandState
impl Freeze for CommandState
impl RefUnwindSafe for CommandState
impl Send for CommandState
impl Sync for CommandState
impl Unpin for CommandState
impl UnsafeUnpin for CommandState
impl UnwindSafe for CommandState
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