#[non_exhaustive]pub enum CommandError {
NoOutputFor(u64),
Timeout(u64),
ExecutionFailed {
status: ExitStatus,
stderr: String,
},
KillAfterTimeoutFailed(KillFailedError),
SandboxOOM,
SandboxImagePullFailed(Box<CommandError>),
SandboxImageMissing(Box<CommandError>),
SandboxContainerCreate(Box<CommandError>),
WorkspaceNotMountedCorrectly,
InvalidDockerInspectOutput(Error),
IO(Error),
}Expand description
Error happened while executing a command.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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
The command failed to execute.
Fields
status: ExitStatusthe exit status we got from the command
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.
SandboxContainerCreate(Box<CommandError>)
Failed to create the sandbox container
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.