Struct gapi_grpc::google::devtools::remoteworkers::v1test2::CommandResult[][src]

pub struct CommandResult {
    pub status: Option<Status>,
    pub exit_code: i32,
    pub outputs: Option<Digest>,
    pub duration: Option<Duration>,
    pub overhead: Option<Duration>,
    pub metadata: Vec<Any>,
}

All information about the execution of a command, suitable for providing as the Bots interface’s Lease.result field.

Fields

status: Option<Status>

An overall status for the command. For example, if the command timed out, this might have a code of DEADLINE_EXCEEDED; if it was killed by the OS for memory exhaustion, it might have a code of RESOURCE_EXHAUSTED.

exit_code: i32

The exit code of the process. An exit code of “0” should only be trusted if status has a code of OK (otherwise it may simply be unset).

outputs: Option<Digest>

The output files. The blob referenced by the digest should contain one of the following (implementation-dependent):

duration: Option<Duration>

The elapsed time between calling Accept and Complete. The server will also have its own idea of what this should be, but this excludes the overhead of the RPCs and the bot response time.

overhead: Option<Duration>

The amount of time not spent executing the command (ie uploading/downloading files).

metadata: Vec<Any>

Implementation-dependent metadata about the task. Both servers and bots may define messages which can be encoded here; bots are free to provide metadata in multiple formats, and servers are free to choose one or more of the values to process and ignore others. In particular, it is not considered an error for the bot to provide the server with a field that it doesn’t know about.

Trait Implementations

impl Clone for CommandResult[src]

impl Debug for CommandResult[src]

impl Default for CommandResult[src]

impl Message for CommandResult[src]

impl PartialEq<CommandResult> for CommandResult[src]

impl StructuralPartialEq for CommandResult[src]

Auto Trait Implementations

impl RefUnwindSafe for CommandResult

impl Send for CommandResult

impl Sync for CommandResult

impl Unpin for CommandResult

impl UnwindSafe for CommandResult

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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>, 
[src]

impl<T> WithSubscriber for T[src]