[][src]Enum usereport::command::CommandResult

pub enum CommandResult {
    Success {
        command: Command,
        run_time_ms: u64,
        stdout: String,
    },
    Failed {
        command: Command,
        run_time_ms: u64,
        stdout: String,
    },
    Timeout {
        command: Command,
        run_time_ms: u64,
    },
    Error {
        command: Command,
        reason: String,
    },
}

Encapsulates a command execution result

Variants

Success

Command has been executed successfully and String contains stdout.

Fields of Success

command: Commandrun_time_ms: u64stdout: String
Failed

Command failed to execute

Fields of Failed

command: Commandrun_time_ms: u64stdout: String
Timeout

Command execution exceeded specified timeout

Fields of Timeout

command: Commandrun_time_ms: u64
Error

Command could not be executed

Fields of Error

command: Commandreason: String

Trait Implementations

impl Clone for CommandResult[src]

impl Debug for CommandResult[src]

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

impl Eq for CommandResult[src]

impl PartialEq<CommandResult> for CommandResult[src]

impl Serialize for CommandResult[src]

impl StructuralEq for CommandResult[src]

impl StructuralPartialEq for CommandResult[src]

Auto Trait Implementations

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