pub enum ConfigError {
Read {
path: PathBuf,
source: Error,
},
Parse(Error),
UnknownProfile {
repository: String,
profile: String,
defined: Vec<String>,
},
MissingLabels {
repository: String,
},
UnsafeNotAllowed,
ZeroLimit {
field: String,
},
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.
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for ConfigError
impl !UnwindSafe for ConfigError
impl Freeze for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl UnsafeUnpin for ConfigError
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
Mutably borrows from an owned value. Read more