pub enum ConfigError {
Show 41 variants
Io(Error),
FileIo {
path: PathBuf,
source: Error,
},
UnsafePath,
ChangedOnDisk(PathBuf),
NotFound,
TooLarge(String),
Toml(String),
TomlLimit,
Provider {
provider: ProviderId,
source: AuthoringError,
},
HeaderOwnership(AuthoringError),
InvalidRuntime(&'static str),
McpServer {
server: String,
reason: String,
},
Plugin {
plugin: String,
reason: String,
},
Interpolation(String),
MissingEnvironment {
path: String,
variable: String,
},
NonUtf8Environment {
path: String,
variable: String,
},
AgentFilename(String),
DuplicateAgent(AgentId),
AgentPresetName {
path: PathBuf,
name: String,
},
ReservedAgentId(AgentId),
AgentDocument {
path: PathBuf,
message: String,
},
AgentSchemaRemoved {
path: PathBuf,
line: usize,
},
ConfigSchemaRemoved {
path: PathBuf,
line: usize,
},
AgentToolsRemoved(AgentId),
AgentModelsRenamed(AgentId),
AgentTimeoutInternalOnly(AgentId),
AgentPermissionExpression(AgentId),
AgentYamlLimit,
EmptyPrompt(AgentId),
AgentField {
agent: AgentId,
field: &'static str,
},
AgentLimit(AgentId),
PrimaryFallback(AgentId),
Delegation(AgentId),
UnknownDelegationTarget {
agent: AgentId,
target: AgentId,
},
IneligibleDelegationTarget {
agent: AgentId,
target: AgentId,
},
UnmatchedDelegationPattern {
agent: AgentId,
pattern: String,
},
DuplicateFallbackModel {
agent: AgentId,
model: ModelKey,
},
SkillName {
path: PathBuf,
name: String,
},
SkillNameMismatch {
path: PathBuf,
directory: String,
frontmatter: String,
},
SkillDocument {
path: PathBuf,
message: String,
},
SkillListingBudget,
}Variants§
Io(Error)
FileIo
UnsafePath
ChangedOnDisk(PathBuf)
NotFound
TooLarge(String)
Toml(String)
TomlLimit
Provider
HeaderOwnership(AuthoringError)
InvalidRuntime(&'static str)
McpServer
Plugin
Interpolation(String)
MissingEnvironment
NonUtf8Environment
AgentFilename(String)
DuplicateAgent(AgentId)
AgentPresetName
ReservedAgentId(AgentId)
AgentDocument
AgentSchemaRemoved
ConfigSchemaRemoved
AgentToolsRemoved(AgentId)
AgentModelsRenamed(AgentId)
AgentTimeoutInternalOnly(AgentId)
AgentPermissionExpression(AgentId)
AgentYamlLimit
EmptyPrompt(AgentId)
AgentField
AgentLimit(AgentId)
PrimaryFallback(AgentId)
Delegation(AgentId)
UnknownDelegationTarget
IneligibleDelegationTarget
UnmatchedDelegationPattern
DuplicateFallbackModel
SkillName
SkillNameMismatch
SkillDocument
SkillListingBudget
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