pub enum ConfigError {
Show 28 variants
InvalidMountConfig {
reason: String,
},
Io(Error),
Parse {
path: PathBuf,
source: Error,
},
DefaultCount {
found: usize,
},
DuplicateName {
name: String,
},
UnknownModel {
name: String,
model: String,
},
InvalidFusionWeight {
name: String,
value: f64,
},
InvalidActorId {
id: String,
reason: String,
},
InvalidMailboxReaders {
reason: String,
},
InvalidGrantedActorId {
id: String,
reason: String,
},
InvalidWriteDenyPatterns {
reason: String,
},
DuplicateBackendName {
name: String,
},
InvalidBackendName {
name: String,
reason: String,
},
EmptyBackendServedKinds {
name: String,
},
MissingBackendSearchKinds {
kinds: Vec<SubstrateKind>,
defined: String,
},
UnknownPackBackend {
pack: String,
backend: String,
defined: String,
},
UnsupportedBackendField {
name: String,
field: &'static str,
},
UnsupportedTopLevelDb {
value: String,
},
InvalidGitWriteEntry {
repo: String,
reason: String,
},
InvalidGitWriteConfig {
key: String,
reason: String,
},
InvalidExecConfig {
key: String,
reason: String,
},
InvalidTelemetryConfig {
entry: String,
reason: String,
},
InvalidWebConfig {
key: String,
reason: String,
},
InvalidBlobHydrationBytes {
value: u64,
min: u64,
max: u64,
},
ExplicitConfigMissing {
path: PathBuf,
},
UnsupportedGateSection,
InvalidDisplayTimezone {
timezone: String,
},
InFile {
path: PathBuf,
source: Box<ConfigError>,
},
}Expand description
Errors produced while loading or validating a KhiveConfig.
Variants§
InvalidMountConfig
Io(Error)
Parse
DefaultCount
DuplicateName
UnknownModel
InvalidFusionWeight
InvalidActorId
InvalidMailboxReaders
InvalidGrantedActorId
InvalidWriteDenyPatterns
DuplicateBackendName
InvalidBackendName
EmptyBackendServedKinds
MissingBackendSearchKinds
UnknownPackBackend
UnsupportedBackendField
UnsupportedTopLevelDb
InvalidGitWriteEntry
InvalidGitWriteConfig
InvalidExecConfig
InvalidTelemetryConfig
InvalidWebConfig
InvalidBlobHydrationBytes
ExplicitConfigMissing
UnsupportedGateSection
Retained for source compatibility with callers that matched the
fail-loud behavior of older builds. Supported [gate] sections no
longer produce this error.
InvalidDisplayTimezone
InFile
Loader-context wrapper attaching the config file the error came from.
Added as a wrapping variant, rather than reshaping the existing
variants, so every existing constructor, field access, and the
From<std::io::Error> conversion survive unchanged. The enum is not
#[non_exhaustive], so an exhaustive match on ConfigError must
still add an arm for this variant — either matching InFile and
recursing into source, or a wildcard. Parse already carries its
path and is never wrapped.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more