Struct rust_utils::utils::CommandOutput
source · pub struct CommandOutput {
pub output: String,
pub code: u32,
}
Expand description
Data returned by utils::run_command()
This has the command’s output, status code, and whether it was successful or not
Fields§
§output: String
Text output from the executed command
code: u32
The exit code of the executed command
0 means it was successfully executed
Implementations§
Auto Trait Implementations§
impl Freeze for CommandOutput
impl RefUnwindSafe for CommandOutput
impl Send for CommandOutput
impl Sync for CommandOutput
impl Unpin for CommandOutput
impl UnwindSafe for CommandOutput
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