[][src]Struct reef::Command

pub struct Command {
    pub dir: String,
    pub name: String,
    pub args: Vec<String>,
    pub stdout: String,
    pub stderr: String,
    pub status: Status,
    pub exit_code: i32,
    pub duration: Duration,
    pub timeout: Duration,
    pub start: String,
    pub env: Env,

Metadata about a std::process::Command


dir: String

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

status: Status

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


impl Command[src]

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

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

pub fn age(&self) -> Duration[src]

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

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

pub fn exec_in<P: AsRef<Path>>(&self, path: P) -> Command[src]

pub fn expect_exit_code(&self, exit_code: i32) -> Result<&Command>[src]

pub fn exec(&self) -> Command[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<__S> GraphQLType<__S> for Command where
    __S: ScalarValue,
    &'__b __S: ScalarRefValue<'__b>, 

type Context = ()

The expected context type for this GraphQL type Read more

type TypeInfo = ()

Type that may carry additional schema information Read more

impl Hash 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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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>,