pub enum ConfigError {
Show 14 variants
Read {
path: PathBuf,
source: Error,
},
Parse(Error),
UnknownProfile {
repository: String,
profile: String,
defined: Vec<String>,
},
MissingLabels {
repository: String,
},
UnsafeNotAllowed,
ZeroLimit {
field: String,
},
CpuOvercommit {
value: f64,
},
OpenNotListed {
open: Origin,
},
SizingBounds {
profile: String,
why: &'static str,
},
Notify {
target: String,
why: &'static str,
},
BudgetOverflow,
MeasuredWithoutMemoryMax {
slice: String,
},
ProfileOverBudget {
profile: String,
needs: ByteSize,
slice: String,
memory_max: ByteSize,
},
OverBudget {
total: ByteSize,
slice: String,
memory_max: ByteSize,
},
}Expand description
Why a config cannot be used.
Variants§
Read
The file cannot be read.
Parse(Error)
The file is not valid TOML or does not match the config’s shape.
UnknownProfile
A repository names a profile [profiles] does not define.
Fields
MissingLabels
A repository has no labels, or an empty one.
UnsafeNotAllowed
unsafe-dind without allow_unsafe = true.
ZeroLimit
A limit is 0.
CpuOvercommit
cpu_overcommit is not a number above 0 and at most MAX_CPU_OVERCOMMIT.
OpenNotListed
[web] open is not one of [web] origins.
SizingBounds
A profile’s memory or slots are outside its min_memory, max_memory or max_slots, or its
min_memory is above its max_memory.
Fields
Notify
A [[notify.targets]] entry cannot be used. Never says its URL or a header’s value.
Fields
BudgetOverflow
The caps add up past u64::MAX bytes.
MeasuredWithoutMemoryMax
admission = "measured" with a slice that has no MemoryMax to admit against.
ProfileOverBudget
Under admission = "measured", one runner of a profile and the mirror do not fit MemoryMax.
Fields
OverBudget
The caps add up to more than the slice’s MemoryMax.
Trait Implementations§
Source§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl Display for ConfigError
impl Display for ConfigError
Source§impl Error for ConfigError
impl Error for ConfigError
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()