pub struct ExecResult {
pub exit_code: Option<i32>,
pub stderr: Option<String>,
pub stdout: Option<String>,
}Fields§
§exit_code: Option<i32>ExitCode is the command’s own exit status. A non-zero one is a SUCCESSFUL call carrying a failed command — the HTTP status stays 200, because "the command failed" and "the call failed" are different facts and a caller has to be able to tell them apart.
stderr: Option<String>Stderr is everything it wrote to standard error. It is populated on a successful run too — plenty of tools report progress there — so it is not a signal that anything went wrong; ExitCode is.
stdout: Option<String>Stdout is everything the command wrote to standard output, as text.
Implementations§
Source§impl ExecResult
impl ExecResult
pub fn new() -> ExecResult
Trait Implementations§
Source§impl Clone for ExecResult
impl Clone for ExecResult
Source§fn clone(&self) -> ExecResult
fn clone(&self) -> ExecResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExecResult
impl Debug for ExecResult
Source§impl Default for ExecResult
impl Default for ExecResult
Source§fn default() -> ExecResult
fn default() -> ExecResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExecResult
impl<'de> Deserialize<'de> for ExecResult
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
Source§impl PartialEq for ExecResult
impl PartialEq for ExecResult
Source§impl Serialize for ExecResult
impl Serialize for ExecResult
impl StructuralPartialEq for ExecResult
Auto Trait Implementations§
impl Freeze for ExecResult
impl RefUnwindSafe for ExecResult
impl Send for ExecResult
impl Sync for ExecResult
impl Unpin for ExecResult
impl UnsafeUnpin for ExecResult
impl UnwindSafe for ExecResult
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