#[non_exhaustive]pub enum ErrorCode {
Show 26 variants
ManifestInvalid,
ManifestVersion,
Unsupported,
Io,
Locked,
ToolMissing,
ToolFailed,
ToolTooOld,
Timeout,
AlreadyRunning,
RunningElsewhere,
PortInUse,
NotParkable,
NothingToResume,
NotRunning,
NotReady,
SecretMissing,
ParamInvalid,
RunName,
ProviderRefused,
ElevationDeclined,
MachineUnknown,
SlotsFull,
AdoptRefused,
Unreachable,
NotSealed,
}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.
ManifestVersion
The manifest is another version of the contract.
Unsupported
The manifest needs something this runner doesn’t do yet (a driver, a delivery, a condition).
Io
A file or folder couldn’t be read or written.
Locked
Another process runs an operation on this run.
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 ran out of time and was stopped, with what it started.
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 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.
ElevationDeclined
The elevation Hyper-V’s commands need couldn’t be had (the permission prompt declined).
MachineUnknown
A machine 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.
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 Freeze 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.