pub enum AgentConfigError {
Io(Error),
Yaml(String),
Toml(String),
Json(Error),
Invalid(String),
}Expand description
Errors from agent config operations.
Variants§
Io(Error)
Failed to read the config file.
Yaml(String)
Failed to parse YAML.
Toml(String)
Failed to parse TOML.
Json(Error)
Failed to parse JSON.
Invalid(String)
Invalid configuration.
Trait Implementations§
Source§impl Debug for AgentConfigError
impl Debug for AgentConfigError
Source§impl Display for AgentConfigError
impl Display for AgentConfigError
Source§impl Error for AgentConfigError
impl Error for AgentConfigError
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()
Source§impl From<Error> for AgentConfigError
impl From<Error> for AgentConfigError
Auto Trait Implementations§
impl Freeze for AgentConfigError
impl !RefUnwindSafe for AgentConfigError
impl Send for AgentConfigError
impl Sync for AgentConfigError
impl Unpin for AgentConfigError
impl UnsafeUnpin for AgentConfigError
impl !UnwindSafe for AgentConfigError
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