#[non_exhaustive]pub enum ErrorCode {
Show 34 variants
ManifestInvalid,
ManifestVersion,
Unsupported,
Io,
Locked,
ToolMissing,
ToolFailed,
ToolTooOld,
Timeout,
DownloadStalled,
DownloadFailed,
AlreadyRunning,
RunningElsewhere,
PortInUse,
NotParkable,
NothingToResume,
NotRunning,
NotReady,
SecretMissing,
ParamInvalid,
RunName,
ProviderRefused,
ElevationFailed,
MachineUnknown,
MachineAmbiguous,
NetworkUnknown,
SlotsFull,
AdoptRefused,
Unreachable,
NotSealed,
Cancelled,
Usage,
NoConsole,
ServerAuthFailed,
}Expand description
The stable code of a failure, the same in the Rust API and the event stream (error.code).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ManifestInvalid
The manifest isn’t valid JSON or breaks the contract, a value it gives can’t be used as
written (a step’s verdict that isn’t a regular expression, an SSH login, a wait_s, a
tcp condition’s port), or it names a value the operation doesn’t have (a placeholder
with none, a guest delivery’s machine whose address no output gives, a Terraform module
with no .tf file).
ManifestVersion
The manifest is another version of the contract.
Unsupported
The manifest needs something this runner doesn’t do (a target that doesn’t run on this host, a delivery its driver doesn’t take, an action of another driver’s, a step with no command for this host), or the call asks the run for something its target can’t do (a console into a Compose service with no VM, a Vagrant VM joined to another network).
Io
A file or folder couldn’t be read or written, or a socket on this computer bound.
Locked
Another process runs an operation on this run, or holds the home’s slot pick.
ToolMissing
A tool a step runs isn’t installed.
ToolFailed
A step’s tool ran and failed.
ToolTooOld
A tool answers at a version older than the run needs.
Timeout
A step showed no progress for its time limit, or ran to the ceiling every step stops at,
and was stopped, with what it started (the error event’s timeout says which).
DownloadStalled
A download (what a step needs, fetched in a phase of its own before it: a Compose start’s images, a Vagrant start’s boxes; or a step the manifest marks a download) showed no progress for as long as a download may, and was stopped.
DownloadFailed
A download couldn’t be made: its tool failed (the message says why: a registry or a box catalog refusing it, a name it doesn’t know, the network). A failure for the network that passes (a connection reset, refused or timed out, a gateway’s 502, 503 or 504) was tried again first, up to three more times: the message is the last try’s.
AlreadyRunning
The run is already up.
RunningElsewhere
The run is recorded on another place (server or account) than the one asked for.
PortInUse
A host port the run publishes is taken.
NotParkable
The manifest has no park steps for that mode.
NothingToResume
Nothing of the run, or not every one of its machines, is left to resume.
NotRunning
The run isn’t up.
NotReady
A ready condition didn’t hold.
SecretMissing
A required secret or input has no value.
ParamInvalid
A param is unknown, missing or holds a value it doesn’t allow.
RunName
A run name that can’t name a run.
ProviderRefused
The run’s Vagrant provider is missing, unknown, not on this host, refused by the run, or lacks its plugin.
ElevationFailed
The elevation Hyper-V’s commands need couldn’t be had or was lost: the permission prompt declined or unanswered, the elevated session not started or ended before the operation (the message says which).
MachineUnknown
A machine the run doesn’t have.
MachineAmbiguous
The run has several machines the call could mean, and it named none.
NetworkUnknown
A network the run doesn’t have.
SlotsFull
Every slot of the place is held by another run.
AdoptRefused
A deployment can’t be taken over as a run.
Unreachable
A machine a step goes to over SSH never answered.
NotSealed
The run’s seal failed: it is up, but not sealed, so not ready.
Cancelled
The operation was cut short before it ended (its future dropped: an embedder’s cancel, the command line’s Ctrl-C or SIGTERM); the tools it started were asked to stop, and are ended once they have, or 30 seconds later.
Usage
The embedder was asked for something that makes no sense (the command line: a run folder with no manifest, a value missing or malformed), so no operation started.
NoConsole
The machine has no graphical console to reach: its target or provider gives none (the error says why), it isn’t running, or its hypervisor doesn’t say where it is.
ServerAuthFailed
The server the run is on (Proxmox VE, ESXi) refused the run’s credentials: its API answered 401 or 403, or its tool said the sign-in failed (an API token revoked, a password changed).
Implementations§
Trait Implementations§
impl Copy for ErrorCode
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ErrorCode
Source§impl JsonSchema for ErrorCode
impl JsonSchema for ErrorCode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Forget for ErrorCode
impl Freeze for ErrorCode
impl Move for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.