#[non_exhaustive]pub enum Error {
Show 36 variants
Manifest {
path: PathBuf,
source: Error,
},
Unsupported {
what: String,
},
Malformed {
at: String,
reason: String,
},
Io {
path: PathBuf,
action: &'static str,
source: Error,
},
Locked {
run: String,
},
SlotsLocked {
waited_s: u64,
},
ToolMissing {
step: String,
tool: String,
},
ToolTooOld {
tool: String,
found: String,
required: String,
},
ToolFailed {
step: String,
reason: String,
},
Timeout {
step: String,
timed_out: TimedOut,
},
DownloadStalled {
step: String,
after_s: u64,
last_line: Option<String>,
},
DownloadFailed {
step: String,
reason: String,
},
AlreadyRunning {
run: String,
},
RunningElsewhere {
run: String,
recorded: String,
asked: String,
},
PortInUse {
port: u16,
protocol: String,
},
NotParkable {
run: String,
mode: &'static str,
},
NothingToResume {
run: String,
},
PartlyGone {
run: String,
machines: Vec<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,
},
MachineAmbiguous {
run: String,
which: &'static str,
machines: String,
},
NetworkUnknown {
run: String,
network: String,
},
Relay {
host: String,
source: Error,
},
Elevation {
reason: String,
},
Provider {
provider: String,
reason: String,
},
NoProvider {
providers: 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,
},
NoConsole {
machine: String,
why: 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, or the call asks the run for something its target can’t do.
Fields
Malformed
A value the manifest gives that can’t be used as written.
Io
A file or folder couldn’t be read or written, or a loopback port bound.
Fields
Locked
Another process holds the run’s lock.
SlotsLocked
Another start held the home’s slot pick for as long as a start waits for it.
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: it showed no progress for its limit, or it ran to the ceiling.
DownloadStalled
A download (what a step downloads in its own phase before it runs, or a step the manifest
marks a download) showed no progress for after_s seconds, and was stopped. A download
has no other limit: one still moving runs as long as it moves.
Fields
DownloadFailed
A download couldn’t be made.
Fields
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.
PartlyGone
Some of the run’s machines are gone (removed outside the runner): a resume brings back only what was kept, so it can’t bring the run back as it was.
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, console into, attach, detach or retire).
MachineAmbiguous
The run has several machines the call could mean, and it named none.
Fields
NetworkUnknown
A network the run doesn’t have.
Relay
The macOS relays to an ESXi host couldn’t be set up (a relay that can’t listen on the
loopback, a PATH that isn’t UTF-8, the ovftool wrapper’s folder that can’t be written).
Elevation
The elevation the run’s commands need couldn’t be had.
Provider
The run’s Vagrant provider can’t run it.
Fields
NoProvider
A Vagrant run was asked for with no provider.
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 (a guest
delivery’s: 15 minutes).
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.
NoConsole
A machine with no graphical console to reach, and why.
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()