#[non_exhaustive]pub enum ErrorCode {
Show 40 variants
ProjectInvalid,
Unsupported,
Io,
Locked,
ToolMissing,
ToolFailed,
ToolUnanswered,
ToolTooOld,
ToolDenied,
CredentialsExpired,
AddressPoolOverlap,
Timeout,
DownloadStalled,
DownloadFailed,
AlreadyRunning,
RunningElsewhere,
PortInUse,
NotParkable,
NothingToResume,
NotRunning,
NotReady,
SecretMissing,
InputInvalid,
RunName,
ProviderRefused,
ElevationFailed,
MachineUnknown,
MachineAmbiguous,
NetworkUnknown,
AdoptRefused,
Cancelled,
Usage,
NoConsole,
ServerAuthFailed,
Corrupt,
IllegalTransition,
StateConflict,
StoreVersion,
StoreCorrupt,
LeaseHeld,
}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
ProjectInvalid
The folder isn’t a project Isothrum runs: it holds no Compose file, Vagrantfile or Terraform module, or the files of several formats with none named.
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.
ToolUnanswered
A tool the run needs is installed, but got no answer from its service: Docker’s engine
stopped, or quit while a step ran (the step says which): the message says what the tool
said.
ToolTooOld
A tool answers at a version older than the run needs.
ToolDenied
A tool refused this account (Docker’s engine its socket or named pipe): the account needs the access (a group), not the tool started.
CredentialsExpired
A cloud refused the sign-in the run’s tools use: a CLI or SSO session that ran out, an expired token, application-default credentials gone stale, a profile never signed in. Signing in again fixes it; the cloud refused before Terraform changed anything.
AddressPoolOverlap
A network the run makes needs an address block another network on the engine already
holds (Docker’s Pool overlaps with other one on this address space).
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 detail 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.
InputInvalid
A value or secret that can’t be handed to the tools (its name empty or holding =, a
NUL in it).
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, or the hypervisor lacks what it needs on this computer (virtiofsd, for a
shared folder on Linux: the detail’s need).
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.
AdoptRefused
A deployment can’t be taken over as a run.
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).
Corrupt
A file of the runner’s own (a record, a ledger entry) is there but isn’t what it wrote: not JSON, or another version’s shape.
IllegalTransition
The run’s state machine has no such move (a park of a parked run, a resume of a ready one), or a resource row can’t move that way.
StateConflict
The run moved between the read and the write that would have moved it: try again.
StoreVersion
The home’s store was written by a newer runner.
StoreCorrupt
The home’s store isn’t a database this runner reads, or holds what it doesn’t write.
LeaseHeld
A live process holds the lease asked for.
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.