pub enum RunStatus {
Completed {
exit_code: i32,
time_taken: Duration,
stdout: Option<Vec<u8>>,
stderr: Option<Vec<u8>>,
},
Failure {
reason: String,
},
}
Expand description
Variants§
Completed
Completely ran the command. The command may have succeeded of failed.
Fields
Failure
Failed to run the command due to internal reasons. Does not indicate a command that ran with a non-success exit code, but rather that the command couldn’t even be started.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunStatus
impl<'de> Deserialize<'de> for RunStatus
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
Auto Trait Implementations§
impl Freeze for RunStatus
impl RefUnwindSafe for RunStatus
impl Send for RunStatus
impl Sync for RunStatus
impl Unpin for RunStatus
impl UnwindSafe for RunStatus
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