Enum rustwide::cmd::CommandError[][src]

#[non_exhaustive]pub enum CommandError {
    NoOutputFor(u64),
    Timeout(u64),
    ExecutionFailed(ExitStatus),
    KillAfterTimeoutFailed(KillFailedError),
    SandboxOOM,
    SandboxImagePullFailed(Box<CommandError>),
    SandboxImageMissing(Box<CommandError>),
    WorkspaceNotMountedCorrectly,
    InvalidDockerInspectOutput(Error),
    IO(Error),
}

Error happened while executing a command.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoOutputFor(u64)

The command didn’t output anything to stdout or stderr for more than the timeout, and it was killed. The timeout’s value (in seconds) is the first value.

Timeout(u64)

The command took more time than the timeout to end, and it was killed. The timeout’s value (in seconds) is the first value.

ExecutionFailed(ExitStatus)

The command failed to execute.

KillAfterTimeoutFailed(KillFailedError)

Killing the underlying process after the timeout failed.

SandboxOOM

The sandbox ran out of memory and was killed.

SandboxImagePullFailed(Box<CommandError>)

Pulling a sandbox image from the registry failed

SandboxImageMissing(Box<CommandError>)

The sandbox image is missing from the local system.

WorkspaceNotMountedCorrectly

Running rustwide inside a Docker container requires the workspace directory to be mounted from the host system. This error happens if that’s not true, for example if the workspace lives in a directory inside the container.

InvalidDockerInspectOutput(Error)

The data received from the docker inspect command is not valid.

IO(Error)

An I/O error occured while executing the command.

Trait Implementations

impl Debug for CommandError[src]

impl Display for CommandError[src]

impl Error for CommandError[src]

impl From<Error> for CommandError[src]

Auto Trait Implementations

impl !RefUnwindSafe for CommandError

impl Send for CommandError

impl Sync for CommandError

impl Unpin for CommandError

impl !UnwindSafe for CommandError

Blanket Implementations

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

impl<T> AsFail for T where
    T: Fail
[src]

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

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

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[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> 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>, 
[src]