[][src]Struct reef::Command

pub struct Command {
    pub dir: PathBuf,
    pub name: String,
    pub args: Vec<String>,
    pub stdout: String,
    pub stderr: String,
    pub success: bool,
    pub exit_code: i32,
    pub duration: Duration,
    pub timeout: Duration,
    pub start: String,
    pub env: Env,
    pub tags: HashSet<String>,
    pub uuid: String,
}

Metadata about a std::process::Command

Fields

dir: PathBuf

The working directory

name: String

The command name

args: Vec<String>

The command arguments

stdout: String

The standard output text

stderr: String

The standard error text

success: bool

Indication of success or failure

exit_code: i32

The exit code of the process

duration: Duration

The duration of the command execution

timeout: Duration

The timeout duration for the command execution

start: String

The start time of the command execution

env: Env

Environment metadata

tags: HashSet<String>

Tags

uuid: String

UUID

Implementations

impl Command[src]

pub fn new(command: &str, path: &Path) -> Command[src]

pub fn exec(&mut self) -> Result<Command, Error>[src]

execute a command

pub fn success_symbol(&self) -> String[src]

pub fn duration_string(&self) -> String[src]

pub fn summary(&self) -> String[src]

pub fn details(&self) -> Vec<String>[src]

pub fn start_utc(&self) -> DateTime<Utc>[src]

pub fn start_local(&self) -> DateTime<Local>[src]

pub fn to_json(&self) -> Result<String, Error>[src]

Trait Implementations

impl Clone for Command[src]

impl Debug for Command[src]

impl Default for Command[src]

impl<'de> Deserialize<'de> for Command[src]

impl Display for Command[src]

impl Eq for Command[src]

impl From<Error> for Command[src]

impl Ord for Command[src]

impl PartialEq<Command> for Command[src]

impl PartialOrd<Command> for Command[src]

impl Serialize for Command[src]

impl StructuralEq for Command[src]

impl StructuralPartialEq for Command[src]

Auto Trait Implementations

impl RefUnwindSafe for Command

impl Send for Command

impl Sync for Command

impl Unpin for Command

impl UnwindSafe for Command

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,