pub struct ProcessResult {
pub program: String,
pub args: Vec<String>,
pub exit_code: i32,
pub stdout: String,
pub stderr: String,
pub execution_time_ms: u64,
}Expand description
Process execution result
Fields§
§program: StringProgram name
args: Vec<String>Program arguments
exit_code: i32Exit code
stdout: StringStandard output
stderr: StringStandard error
execution_time_ms: u64Execution time in milliseconds
Implementations§
Source§impl ProcessResult
impl ProcessResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if the process was successful
Sourcepub fn combined_output(&self) -> String
pub fn combined_output(&self) -> String
Get combined output
Sourcepub fn command_line(&self) -> String
pub fn command_line(&self) -> String
Get command line representation
Trait Implementations§
Source§impl Clone for ProcessResult
impl Clone for ProcessResult
Source§fn clone(&self) -> ProcessResult
fn clone(&self) -> ProcessResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessResult
impl Debug for ProcessResult
Source§impl<'de> Deserialize<'de> for ProcessResult
impl<'de> Deserialize<'de> for ProcessResult
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 ProcessResult
impl RefUnwindSafe for ProcessResult
impl Send for ProcessResult
impl Sync for ProcessResult
impl Unpin for ProcessResult
impl UnwindSafe for ProcessResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more