#[non_exhaustive]pub enum Error {
Show 26 variants
Manifest {
path: PathBuf,
source: Error,
},
Unsupported {
what: String,
},
Io {
path: PathBuf,
action: &'static str,
source: Error,
},
Locked {
run: String,
},
ToolMissing {
step: String,
tool: String,
},
ToolTooOld {
tool: String,
found: String,
required: String,
},
ToolFailed {
step: String,
reason: String,
},
Timeout {
step: String,
after_s: u64,
},
AlreadyRunning {
run: String,
},
RunningElsewhere {
run: String,
recorded: String,
asked: String,
},
PortInUse {
port: u16,
protocol: &'static str,
},
NotParkable {
run: String,
mode: &'static str,
},
NothingToResume {
run: String,
},
NotRunning {
run: String,
},
NotReady {
condition: String,
detail: String,
},
SecretMissing {
name: String,
},
Param {
name: String,
reason: String,
},
Unbound {
at: String,
placeholder: String,
},
MachineUnknown {
run: String,
machine: String,
},
Elevation {
reason: String,
},
Provider {
provider: String,
reason: String,
},
SlotsFull {
place: String,
held: usize,
},
Unreachable {
step: String,
login: String,
after_s: u64,
reason: String,
},
Unsealed {
run: String,
reason: String,
},
Adopt {
run: String,
reason: String,
},
RunName {
value: String,
},
}Expand description
Why an operation of the runner failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Manifest
The manifest was refused (its own error names the field and the fix).
Fields
Unsupported
The manifest needs something this runner doesn’t do yet.
Io
A file or folder couldn’t be read or written.
Fields
Locked
Another process holds the run’s lock.
ToolMissing
A step’s tool isn’t on PATH.
ToolTooOld
A tool answers at a version older than the manifest’s min_version for it.
Fields
ToolFailed
A step’s tool ran and failed.
Fields
Timeout
A step ran out of time.
AlreadyRunning
The run is already up.
RunningElsewhere
The run is recorded somewhere else.
Fields
PortInUse
A host port the run publishes is taken.
NotParkable
No park steps for that mode.
NothingToResume
Nothing 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.
Param
A param that can’t be used as given.
Unbound
A placeholder with no value at run time.
MachineUnknown
A machine the run doesn’t have (to provision).
Elevation
The elevation the run’s commands need couldn’t be had.
Provider
The run’s Vagrant provider can’t run it.
Fields
SlotsFull
Every slot of the run’s place is held by another run.
Fields
Unreachable
A machine a step goes to over SSH never answered within the step’s wait_s.
Fields
Unsealed
The run’s seal failed: it is up, unsealed, and never reported ready.
Adopt
A deployment that can’t be taken over as a run.
RunName
A run name that can’t name a run.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()